Notable to get scale train dataset while creating dendo grams of stocks

Below is the error message  i am  getting  please help me resolve this 





TypeError: Feature names are only supported if all input features have string names, but your input has ['Timestamp', 'str'] 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.

Hi Keerti,



The error message suggests that the input data contains a mix of feature/column names that are of different data types. In this case, the data contains feature names that are a mixture of strings and other data types.



To resolve this issue you can either convert all feature names to string format:

X.columns = X.columns.astype(str)

Or you can also convert all non-string data types to string:
X['feature_name'] = X['feature_name'].astype(str)

Note: Here, X is the input data frame that contains the features and feature_name is the name of the feature that you want to convert.

Thanks,
Rushda Ansari