OneHotEncoder.
transform
One-hot encode the input DataFrame.
X (pd.DataFrame) – Dataframe of features.
y (pd.Series) – Ignored.
Transformed dataframe, where each categorical feature has been encoded into numerical columns using one-hot encoding.