bigframes.ml.preprocessing.StandardScaler.fit_transform#
- StandardScaler.fit_transform(X: DataFrame | Series | DataFrame | Series, y: DataFrame | Series | DataFrame | Series | None = None) DataFrame#
Fit to data, then transform it.
- Parameters:
X (bigframes.dataframe.DataFrame or bigframes.series.Series) – Series or DataFrame of shape (n_samples, n_features). Input samples.
y (bigframes.dataframe.DataFrame or bigframes.series.Series) – Series or DataFrame of shape (n_samples,) or (n_samples, n_outputs). Default None. Target values (None for unsupervised transformations).
- Returns:
- DataFrame of shape (n_samples, n_features_new).
Transformed DataFrame.
- Return type: