Returns integers for each unique string value in a referenced column.
Last updated 3 years ago
ENCODE(column)
column
Returns a column with numbers assigned to each unique value of the referenced column. Used for columns with categorical data that need to be converted to numbers.
Column of integers corresponding to the unique values in column.
Argument
Description
String column with categorical values