TransformerMixin.fit_transform¶
- TransformerMixin.fit_transform(data)[source]¶
Fits the estimator using the provided data and subsequently transforms the data using the fitted estimator. It simply chains calls to
fit()
andtransform()
.- Parameters
data (
TypeVar
(D_contra
, contravariant=True)) -- The data to use for fitting and to transform. The data must have the same type as for thefit()
method.- Return type
TypeVar
(R_co
, covariant=True)- Returns
The transformed data. Consult the
transform()
documentation for more information on the return type.