bigframes.ml.preprocessing.LabelEncoder.fit#

LabelEncoder.fit(y:DataFrame|Series|DataFrame|Series)LabelEncoder[source]#

Fit label encoder.

Parameters:

y (bigframes.dataframe.DataFrame orbigframes.series.Series orpandas.core.frame.DataFrame orpandas.core.series.Series) – The DataFrame or Series with training data.

Returns:

Fitted encoder.

Return type:

LabelEncoder

On this page

This Page