- Print
- DarkLight
- PDF
The categorical-range
parser will load data from a range of columns in a source data table and create categorical variables within a collection.
It does not use the column attribute, because the columns are defined by the range attributes start and end.
The categorical variables produced will be named after the column headers within the range.
{
"parser_type": "categorical-range",
"table_alias": "tata".
"start": 1,
"end": 10,
"indicator": "yes",
"collection": "collection_name"
}
start
usage: optional
The start
attribute value is an integer indicating which column begins the range (inclusive). Column indexes start at 0 (first column).
The start
attribute will default to the 0th column index.
end
usage: optional
The end attribute value is an integer indicating which column ends the range (inclusive).
The end attribute will default to the last column index.
indicator
usage: optional
The indicator
attribute value is an integer or string indicating the value which will include an entity within a categorical variable.
The indicator
attribute will default to the value 1 - i.e. the 1-hot encoding or dummy variable indicator.