oneHot#

swordfish.function.oneHot()#

Perform one-hot encoding on the specified columns in an in-memory table. It returns a table with columns in the order of encoded columns and non-encoded columns. The name of the encoded columns is "original column name_value".

参数:
  • obj (Constant) -- An in-memory table.

  • encodingColumns (Constant) -- A STRING scalar or vector, indicating the columns for one-hot encoding.