evalml.pipelines.components.OneHotEncoder.fit_transform

OneHotEncoder.fit_transform(X, y=None)

Fits on X and transforms X

Parameters
  • X (pd.DataFrame) – Data to fit and transform

  • y (pd. DataFrame) – Labels to fit and transform

Returns

Transformed X

Return type

pd.DataFrame