Skip to content

Commit

Permalink
new pandas index uses to_numpy(), not get_values()
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomiku committed Mar 24, 2021
1 parent b813b50 commit 2cd2f2e
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 @@ -429,7 +429,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 2cd2f2e

Please sign in to comment.