bigframes.ml.preprocessing.OneHotEncoder.transform#
- OneHotEncoder.transform(X: DataFrame | Series | DataFrame | Series) DataFrame[source]#
Transform X using one-hot encoding.
- Parameters:
X (bigframes.dataframe.DataFrame or bigframes.series.Series or pandas.core.frame.DataFrame or pandas.core.series.Series) – The DataFrame or Series to be transformed.
- Returns:
- The result is categorized as index: number, value: number,
where index is the position of the dict seeing the category, and value is 0 or 1.
- Return type: