Skip to content

Commit

Permalink
Update wrappers.py (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
kartiksubbarao authored Mar 8, 2024
1 parent 72fa732 commit 712d8b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions quantstats_lumi/_plotting/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import seaborn as _sns
from matplotlib.ticker import FuncFormatter as _FuncFormatter
from matplotlib.ticker import StrMethodFormatter as _StrMethodFormatter
from pandas import DataFrame as _df

from .. import stats as _stats
from .. import utils as _utils
Expand Down Expand Up @@ -552,7 +551,7 @@ def yearly_returns(
if compounded:
returns = returns.resample("YE").apply(_stats.comp)
else:
returns = returns.resample("YE").apply(_df.sum)
returns = returns.resample("YE").sum()
returns = returns.resample("YE").last()

fig = _core.plot_returns_bars(
Expand Down

0 comments on commit 712d8b8

Please sign in to comment.