processing module
one_hot_encode(indices_input, categorical_variables=None)
¶
Performs one-hot encoding on the specified categorical variables. Variable groups
are updated accordingly. Newly created variables are named:
original_feature_name=value
Parameters:
Name | Type | Description | Default |
---|---|---|---|
indices_input |
IndicesInput
|
IndiceInput object containing the data. |
required |
categorical_variables |
List[str]
|
name of the variable that should be encoded. |
None
|
Returns:
Type | Description |
---|---|
IndicesInput
|
the updated IndicesInput. |
Source code in deel\fairsense\data_management\processing.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|