dtoolkit.transformer.OneHotEncoder.fit#

OneHotEncoder.fit(X, y=None)#

Fit OneHotEncoder to X.

Parameters:
Xarray-like of shape (n_samples, n_features)

The data to determine the categories of each feature.

yNone

Ignored. This parameter exists only for compatibility with Pipeline.

Returns:
self

Fitted encoder.