Skip to content

Commit

Permalink
fillna() beta #193
Browse files Browse the repository at this point in the history
  • Loading branch information
ranaroussi authored Jun 14, 2022
1 parent ea78084 commit ef7e53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantstats/_plotting/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def plot_rolling_beta(returns, benchmark,
returns.index.date[-1:][0].strftime('%e %b \'%y')
), fontsize=12, color='gray')

beta = _stats.rolling_greeks(returns, benchmark, window1)['beta']
beta = _stats.rolling_greeks(returns, benchmark, window1)['beta'].fillna(0)
ax.plot(beta, lw=lw, label=window1_label, color=colors[1])

if window2:
Expand Down

0 comments on commit ef7e53d

Please sign in to comment.