From 1c9471770a51c58f4c9e196e8dafede8d1557aba Mon Sep 17 00:00:00 2001 From: edtechre Date: Sat, 9 Dec 2023 18:36:38 -0800 Subject: [PATCH] Format strategy.py --- src/pybroker/strategy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pybroker/strategy.py b/src/pybroker/strategy.py index 1a350a8..361844c 100644 --- a/src/pybroker/strategy.py +++ b/src/pybroker/strategy.py @@ -197,7 +197,9 @@ def backtest_executions( # TODO pandas 2.1.0 try: sym_exec_dates = { - sym: frozenset(test_data.loc[pd.IndexSlice[sym, :]].index.to_numpy()) + sym: frozenset( + test_data.loc[pd.IndexSlice[sym, :]].index.to_numpy() + ) for sym in exec_ctxs.keys() } except AttributeError: