Open matanost-netop opened 2 years ago
i have the same error, this error just happens in python 3.8+. in python 3.7 it runs with no error. i cant use py3.7 cause another project requeriment.
None: my O.S==win10
i have the same error, in linux python 3.8
Generally speaking, I'm trying to extract features using extract_features from a timeseries using tsfresh.utilities.dataframe_functions.make_forecasting_frame. I encountered an unexpected exception, which I was able to reproduce using a similar example from the tsfresh documentation at https://tsfresh.readthedocs.io/en/latest/text/forecasting.html#forecasting-label
I suspect that the problem occurs due to an id with a single entry, since it is solved when using min_timeshift=1 for roll_time_series.
import pandas as pd df = pd.DataFrame({ "id": [1, 1, 1, 1, 2, 2], "time": [1, 2, 3, 4, 8, 9], "x": [1, 2, 3, 4, 10, 11], "y": [5, 6, 7, 8, 12, 13], }) from tsfresh.utilities.dataframe_functions import roll_time_series df_rolled = roll_time_series(df, column_id="id", column_sort="time") from tsfresh import extract_features df_features = extract_features(df_rolled, column_id="id", column_sort="time")
The exception is:
I'm running on a macOS Monterey 12.0.1, python3. I use pip for installation.
Python version: User Current Version:- 3.9.10 (main, Jan 15 2022, 11:40:53) [Clang 13.0.0 (clang-1300.0.29.3)]
Relevant libraries versions: tsfresh==0.19.0 numpy==1.21.5 pandas==1.4.1