numeric-bins
  • 27 Jul 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

numeric-bins

  • Dark
    Light
  • PDF

Article summary

The numeric-bins 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 numeric-bins parser will map process numeric values from a source column and map entities into bins, which become the categorical variable names.

{
  "parser_type": "numeric-bins", 
  "table_alias": "tata",
  "column": "ccc1",
  "bins": {
    "Less than 3": "<3",
    "From 3 to 5": [
      ">=3",
      "<=5"
    ]
    ...
  },
  "collection": "collection_name"
}


bins

usage: required
The bins attribute contains an object assigning output variable names to arrays of codified strings which define data slices (categorical variables).

The codified string syntax is pretty simple - you just specify the slicing operator followed by the number.

Operators include:

  • =
  • !=
  • <
  • <=
  • >
  • >=

  • Was this article helpful?