Skip to content

Commit

Permalink
fix append error in pandl reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Carver committed Nov 22, 2023
1 parent c509123 commit dbf8f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysproduction/reporting/data/pandl.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_strategy_pandl_and_residual(self):
total_pandl = get_total_capital_pandl(self.data, self.start_date, self.end_date)
residual_pandl = total_pandl - total_pandl_strategies
residual_dfrow = pd.DataFrame(dict(codes=["residual"], pandl=residual_pandl))
strategies_pandl = strategies_pandl.append(residual_dfrow)
strategies_pandl = strategies_pandl._append(residual_dfrow)
strategies_pandl.pandl = strategies_pandl.pandl

return strategies_pandl
Expand Down

0 comments on commit dbf8f8d

Please sign in to comment.