Sklearn Label Encoder icon

Sklearn Label Encoder

Encode categorical labels as integers using scikit-learn

Transform

AI-generated

Summary

Transforms a categorical column to integer labels using a fitted scikit-learn LabelEncoder.

Inputs

  • main (required) — Input items containing the column to encode.

Output shape

same

Each item receives an additional column with the encoded integer values.

Examples

Example 1: Encode a 'category' column using encoder data from a previous Fit Transform step.

Set Operation to Transform, provide encoderData from the Fit Transform node, set Column to 'category', optionally set Output Column to 'category_encoded'.

Discussion