diff --git a/pyfolio/plotting.py b/pyfolio/plotting.py index bd340136..052c3195 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)) + '%'