FinRL-Tutorials icon indicating copy to clipboard operation
FinRL-Tutorials copied to clipboard

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

Open ccssyyy opened this issue 2 years ago • 1 comments

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!!!

ccssyyy avatar Apr 23 '23 08:04 ccssyyy

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 ?

vkoling avatar Mar 13 '24 08:03 vkoling