Label Encode

Encode target labels with value between 0 and n_classes-1. See scikit-learn's LabelEncoder for full documentation.

Parameters

NameTypeDescriptionIs Optional

column

column

Column name to label encode

Example

ds = rasgo.get.dataset(id)

ds2 = ds.label_encode(column='WEATHER_DESCRIPTION')
ds2.preview()

Source Code

Last updated