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

> ## 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-percentile

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

```
{
  "parser_type": "numeric-bins",
  "table_alias": "tata",
  "column": "ccc1",
  "bins": {
    "Less than 50th percentile": "<50",
    "From 30th to 50th percentile": [
      ">=30",
      "<=50"
    ]
    ...
  },
  "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:

=
!=
<
<=
>
>=
