---
title: "numeric-bins"
slug: "numeric-bins-parser"
updated: 2022-07-27T23:45:42Z
published: 2022-07-27T23:45:42Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://code.tag.bio/llms.txt
> Use this file to discover all available pages before exploring further.

# numeric-bins

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:

=
!=
<
<=
>
>=
