Links

One Hot Encode

One hot encode a column. Create a null value flag for the column if any of the values are NULL.

Parameters

Name
Type
Description
Is Optional
column
column
Column name to one-hot encode
list_of_vals
string_list
optional argument to override the dynamic lookup of all values in the target one-hot column
True

Example

ds = rasgo.get.dataset(id)
ds2 = ds.one_hot_encode(column='WEATHER_DESCRIPTION')
ds2.preview()

Source Code

Last modified 7mo ago