---
title: "categorical-transform"
slug: "categorical-transform-parser"
updated: 2022-07-27T23:59:19Z
published: 2022-07-27T23:59:19Z
---

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

# categorical-transform

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.
