categorical-transform
  • 27 Jul 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

categorical-transform

  • Dark
    Light
  • PDF

Article summary

The categorical-transform parser will load data from a column in a source data table and map values to other values before producing categorical variables within a collection.

The categorical-transform parser contains a set of attributes for converting categorical values from a source column into new values - which become categorical variable names.

{
  "parser_type": "categorical-transform",
  "table_alias": "tata",
  "column": "cccc",
  "operator": "uppercase",
  "variable_prefix": "ID = ",
  "variable_suffix": " (testing)",
  "collection": "collection_name"
}


operator

usage: required for tranformations
The operator attribute defines a transform function.

Options include:

  • uppercase
  • lowercase
  • sentencecase
  • titlecase
  • md5

  • variable_prefix

    usage: optional
    Automatically adds a prefix to the name of every generated variable. This can be a constant string, an inner parser object, or a filepath reference to an inner parser object.

    variable_suffix

    usage: optional
    Automatically adds a suffix to the name of every generated variable This can be a constant string, an inner parser object, or a file reference to an inner parser object.


    Was this article helpful?

    What's Next