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