Skip to content

Commit

Permalink
Get rid of unnecessary explodes() in list generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
cciechad committed Mar 24, 2024
1 parent 2e4ecc2 commit 71fe792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AnalyzeLots.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def main() -> None:
print(f"Total long term losses {format_dollar(data.loc[is_long & is_loss, 'gain'].sum())}")
print(f"{','.join(data.loc[is_long & is_loss, 'symbol'].unique().tolist())}")
if args.symbol | args.no_summary:
symbols: list[str] = data['symbol'].explode().unique().tolist()
symbols_name: list[str] = data['display_name'].explode().unique().tolist()
symbols: list[str] = data['symbol'].unique().tolist()
symbols_name: list[str] = data['display_name'].unique().tolist()
symbols_net: list[float] = []
symbols_net_short: list[float] = []
symbols_net_long: list[float] = []
Expand Down

0 comments on commit 71fe792

Please sign in to comment.