ENCODE
Returns integers for each unique string value in a referenced column.
Last updated
Was this helpful?
Returns integers for each unique string value in a referenced column.
Last updated
Was this helpful?
ENCODE(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.
Argument
Description
column
String column with categorical values
Column of integers corresponding to the unique values in column
.