evalml.pipelines.components.OneHotEncoder.transform¶
-
OneHotEncoder.
transform
(X, y=None)[source]¶ One-hot encode the input data.
- Parameters
X (pd.DataFrame) – Features to one-hot encode.
y (pd.Series) – Ignored.
- Returns
Transformed data, where each categorical feature has been encoded into numerical columns using one-hot encoding.
- Return type
pd.DataFrame