Skip to content

Commit a69a294

Browse files
Minor bug.
- In `cols_operation_cumsum()`, removed square braces when creating an empty DataFrame to be returned as this would create a MultiIndex unnecessarily.
1 parent 5251503 commit a69a294

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/simple_portfolio_ledger/src/simple_portfolio_ledger.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,11 @@ def cols_operation_cumsum(self, show_instr_accnt=False, simplify_dtypes=True) ->
358358
# Return an empty DataFrame with whe structure needed
359359
to_return = pd.DataFrame(
360360
columns=[
361-
['instrument', 'account', *ops_cumsum_names, 'cumsum held', 'cumsum invested']
361+
'instrument',
362+
'account',
363+
*ops_cumsum_names,
364+
'cumsum held',
365+
'cumsum invested',
362366
]
363367
)
364368
else:

0 commit comments

Comments
 (0)