You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hit a conversion error when running pyfolio.plotting.plot_drawdown_periods().
First, I ran a backtest in Zipline-reloaded with a start date of 2022-01-02 and an end date of 2023-05-31 and the backtest completed successfully.
Then, I extracted the returns from the backtest result using pyfolio.utils.extract_rets_pos_txn_from_zipline(result).
Finally, I ran pyfolio.plotting.plot_drawdown_periods(returns) and that threw a ConversionError.
Please provide a minimal, self-contained, and reproducible example:
importpyfolioaspfreturns, positions, transactions=pf.utils.extract_rets_pos_txn_from_zipline(perf) ## perf is output from zipline algorithmpf.plot_drawdown_periods(returns)
Problem Description
I hit a conversion error when running pyfolio.plotting.plot_drawdown_periods().
First, I ran a backtest in Zipline-reloaded with a start date of 2022-01-02 and an end date of 2023-05-31 and the backtest completed successfully.
Then, I extracted the returns from the backtest result using pyfolio.utils.extract_rets_pos_txn_from_zipline(result).
Finally, I ran pyfolio.plotting.plot_drawdown_periods(returns) and that threw a ConversionError.
Please provide a minimal, self-contained, and reproducible example:
Please provide the full traceback:
Please provide any additional information below:
2023-05-24 00:00:00+00:00 -0.001341
2023-05-25 00:00:00+00:00 0.002400
2023-05-26 00:00:00+00:00 0.003129
2023-05-30 00:00:00+00:00 0.000319
2023-05-31 00:00:00+00:00 -0.001153
Name: returns, dtype: float64
Versions
The text was updated successfully, but these errors were encountered: