Skip to content

Commit

Permalink
Update tears.py
Browse files Browse the repository at this point in the history
get_values not working for latest versions so adding to_numpy method as per quantopian#379
  • Loading branch information
Subhanimuhammed authored Jan 26, 2021
1 parent 77084f1 commit 582f1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alphalens/tears.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def create_turnover_tear_sheet(factor_data, turnover_periods=None):
if turnover_periods is None:
input_periods = utils.get_forward_returns_columns(
factor_data.columns, require_exact_day_multiple=True,
).get_values()
).to_numpy()
turnover_periods = utils.timedelta_strings_to_integers(input_periods)
else:
turnover_periods = utils.timedelta_strings_to_integers(
Expand Down

0 comments on commit 582f1f4

Please sign in to comment.