evalml.pipelines.components.OneHotEncoder.transform

OneHotEncoder.transform(X, y=None)[source]

One-hot encode the input DataFrame.

Parameters
  • X (pd.DataFrame) – Dataframe of features.

  • y (pd.Series) – Ignored.

Returns

Transformed dataframe, where each categorical feature has been encoded into numerical columns using one-hot encoding.