AI4Finance-Foundation / FinRL-Tutorials

Tutorials. Please star.
https://ai4finance.org
MIT License
839 stars 343 forks source link

I meet an error when I run FinRL_PortfolioAllocation_NeurIPS_2020.ipynb in BackTestPlot,please help me!!! #60

Open ccssyyy opened 1 year ago

ccssyyy commented 1 year ago

when I run this code as following, with pyfolio.plotting.plotting_context(font_scale=1.1): pyfolio.create_full_tear_sheet(returns = DRL_strat, benchmark_rets=baseline_returns, set_context=False)

I meet an error as following,

$I60X}95ZG(QMDQ(I`3 (AE

STD88$G%21~M)O1H6TO%6{H thanks for your help!!!

vkoling commented 7 months ago

I get the same error, as i understand it "obj.iteritems" has been replaced by "obj.items" in pandas version 2.0.0. Although changing "for stat, value in pref_stats[column].iteritems():" to "for stat, value in pref_stats[column].items():" in plotting.py should fix this error it doesn't. Any clue as to why? how do i fix this ?