'df columns saling ERRORCODE

hey i try to scale my df with different datatypes. I already changed the float64 into integer64 format.. but it keeps giving me the error:

TypeError: The DTypes <class 'numpy.dtype[datetime64]'> and <class 'numpy.dtype[int64]'> do not have a common DType. For example they cannot be stored in a single array unless the dtype is object..

the dataset consists of: [Columns with DType][1]

I want to scale the data with this Code:

scaler = StandardScaler()

df_scaled = scaler.fit_transform(df) df_scaled.shape

as soon a i run it it gives me the error [1]: https://i.stack.imgur.com/EllTf.png



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source