OneHotEncoder.
fit_transform
Fits on X and transforms X
X (pd.DataFrame) – Data to fit and transform
y (pd. DataFrame) – Target data
Transformed X
pd.DataFrame