Skip to content

Commit

Permalink
fix: Fix Travis build for the previously committed issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaycode authored and twiecki committed Mar 25, 2018
1 parent 308ee01 commit f827384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion empyrical/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ def get_symbol_returns_from_yahoo(symbol, start=None, end=None):
px = web.get_data_yahoo(symbol, start=start, end=end)
px['date'] = pd.to_datetime(px['date'])
px.set_index('date', drop=False, inplace=True)
# rets = px[['Adj Close']].pct_change().dropna()
rets = px[['adjclose']].pct_change().dropna()
except Exception as e:
warnings.warn(
Expand All @@ -424,6 +423,7 @@ def get_symbol_returns_from_yahoo(symbol, start=None, end=None):
rets.columns = [symbol]
return rets


def default_returns_func(symbol, start=None, end=None):
"""
Gets returns for a symbol.
Expand Down

0 comments on commit f827384

Please sign in to comment.