standardscaler().fit_transform(df) with_mean code example Example: fit(X).transform(X.astype(float) fit(X).transform(X.astype(float)