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
Traceback (most recent call last):
File "D:\quant_ai\mm\backtrader\text.py", line 14, in <module>
pf.plot_drawdown_periods(returns)
File "D:\python\lib\site-packages\pyfolio\plotting.py", line 432, in plot_drawdown_periods
df_drawdowns = timeseries.gen_drawdown_table(returns, top=top)
File "D:\python\lib\site-packages\pyfolio\timeseries.py", line 1008, in gen_drawdown_table
df_drawdowns.loc[i, 'Valley date'] = (valley.to_pydatetime()
AttributeError: 'numpy.int64' object has no attribute 'to_pydatetime'
Please provide any additional information below:
Versions
Pyfolio version: pip install pyfolio
Python version: python3
Pandas version: yes
Matplotlib version: yes
The text was updated successfully, but these errors were encountered:
Problem Description
Please provide a minimal, self-contained, and reproducible example:
Please provide the full traceback:
Please provide any additional information below:
Versions
The text was updated successfully, but these errors were encountered: