Kaggle / learntools

Tools and tests used in Kaggle Learn exercises
Apache License 2.0
447 stars 231 forks source link

[Time Series] Remove pyearth #445

Closed alexisbcook closed 1 year ago

alexisbcook commented 1 year ago

not supported in python 3.10

djherbis commented 1 year ago

Looks like sklearn also needs some changes for py3.10:

TypeError: Feature names are only supported if all input features have string names, but your input has ['str', 'tuple'] as feature name / column name types. If you want feature names to be stored and validated, you must convert them all to strings, by using X.columns = X.columns.astype(str) for example. Otherwise you can remove feature / column names from your input data, or convert them all to a non-string data type.
TypeError: Feature names are only supported if all input features have string names, but your input has ['str', 'tuple'] as feature name / column name types. If you want feature names to be stored and validated, you must convert them all to strings, by using X.columns = X.columns.astype(str) for example. Otherwise you can remove feature / column names from your input data, or convert them all to a non-string data type.

In https://github.com/Kaggle/learntools/blob/9750c602dbc2f78b9182e68b5ae6edfda9e30c3b/notebooks/time_series/raw/tut4.ipynb