ChatGPT_Trading_Bot
ChatGPT_Trading_Bot copied to clipboard
7.2 BackTestPlot - Error
AttributeError Traceback (most recent call last)
5 frames /usr/local/lib/python3.10/dist-packages/pyfolio/timeseries.py in gen_drawdown_table(returns, top) 1006 df_drawdowns.loc[i, 'Peak date'] = (peak.to_pydatetime() 1007 .strftime('%Y-%m-%d')) -> 1008 df_drawdowns.loc[i, 'Valley date'] = (valley.to_pydatetime() 1009 .strftime('%Y-%m-%d')) 1010 if isinstance(recovery, float):
AttributeError: 'numpy.int64' object has no attribute 'to_pydatetime'
Issues related to outdated pyfolio crashes. Need a solution like in #579 to update the backtest_plot package in /usr/local/lib/python3.10/dist-packages/finrl/plot.py