Skip to content

Commit

Permalink
Format strategy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
edtechre committed Dec 10, 2023
1 parent 16b00e6 commit 1c94717
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pybroker/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1c94717

Please sign in to comment.