From 92100d967dc8d62f3fb39f80e988413850ff471d Mon Sep 17 00:00:00 2001 From: Nuerxiati Abudurexiti <75790366+Nurxat21@users.noreply.github.com> Date: Sat, 23 Dec 2023 14:14:20 +0800 Subject: [PATCH] Update plotting.py --- pyfolio/plotting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfolio/plotting.py b/pyfolio/plotting.py index bd3401366..052c31954 100644 --- a/pyfolio/plotting.py +++ b/pyfolio/plotting.py @@ -645,7 +645,7 @@ def show_perf_stats(returns, factor_returns=None, positions=None, perf_stats = pd.DataFrame(perf_stats_all, columns=['Backtest']) for column in perf_stats.columns: - for stat, value in perf_stats[column].iteritems(): + for stat, value in perf_stats[column].items(): if stat in STAT_FUNCS_PCT: perf_stats.loc[stat, column] = str(np.round(value * 100, 3)) + '%'