From 4979057c6fbd045a7998dba53388654d45a217ef Mon Sep 17 00:00:00 2001 From: ckend <83493903@qq.com> Date: Tue, 23 Nov 2021 00:26:54 +0800 Subject: [PATCH] bugfix: Adaptation to the stable version of pandas --- alphalens/tears.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alphalens/tears.py b/alphalens/tears.py index 5616dd1e..feb1605c 100644 --- a/alphalens/tears.py +++ b/alphalens/tears.py @@ -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(