Skip to content

Commit

Permalink
Fix For Issue quantopian#713
Browse files Browse the repository at this point in the history
  • Loading branch information
vikasgaud committed May 6, 2024
1 parent 4b901f6 commit 5121dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfolio/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)) + '%'
Expand Down

0 comments on commit 5121dd8

Please sign in to comment.