From 94a02edeeabfeb3e6406be4a43203562b3d2a27e Mon Sep 17 00:00:00 2001 From: David Waterworth Date: Fri, 24 Feb 2023 09:11:28 +1100 Subject: [PATCH] Replace hard-coded "id" with column_id in `roll_time_series` --- tsfresh/utilities/dataframe_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsfresh/utilities/dataframe_functions.py b/tsfresh/utilities/dataframe_functions.py index d27f4931..81b49c92 100644 --- a/tsfresh/utilities/dataframe_functions.py +++ b/tsfresh/utilities/dataframe_functions.py @@ -343,7 +343,7 @@ def _f(x): else: timeshift_value = timeshift - 1 # and now create new ones ids out of the old ones - df_temp["id"] = df_temp[column_id].apply(lambda row: (row, timeshift_value)) + df_temp[column_id] = df_temp[column_id].apply(lambda row: (row, timeshift_value)) return df_temp