Skip to content

Commit

Permalink
fixed Pandas deprecation warning (issue ranaroussi#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranaroussi committed Dec 24, 2019
1 parent 38c40ad commit 7f4c0ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantstats/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def rebase(prices, base=100.):
* prices: Expects a price series/dataframe
* base (number): starting value for all series.
"""
return prices.dropna() / prices.dropna().ix[0] * base
return prices.dropna() / prices.dropna().iloc[0] * base


def group_returns(returns, groupby, compounded=False):
Expand Down

0 comments on commit 7f4c0ef

Please sign in to comment.