Overview
This is a Transform type Snap that converts numeric fields into categorical fields. There are two available splitting options: splitting by values and binning.
Input and Output
Expected input
- Dataset in the first input view.
- Profile information in the second input view.
Expected output: Document data containing the original dataset along with the data converted from numeric to categorical format.
Expected upstream Snaps:
- First Input View: Any Snap, such as the CSV Generator Snap, that offers a document view in its output.
- Second Input View: A Profile Snap that offers data statistics necessary for performing a numeric to categorical conversion, or a combination of a File Reader Snap and JSON Parser Snap to read the profile information from SLDB.
Expected downstream Snaps: Any Snap that accepts document data in the input view. Example: Mapper, or a combination of JSON Formatter and File Writer to write the file to SLDB.
Prerequisites
A basic understanding of the sampling algorithms supported by the Snap is preferable.
Configuring Accounts
Accounts are not used with this Snap.
Configuring Views
Input | This Snap has exactly two input views. |
---|---|
Output | This Snap has exactly one document output view. |
Error | This Snap has at most one document error view. |
Troubleshooting
None
Limitations and Known Issues
None
Modes
- Ultra pipelines: Works with Ultra Pipelines only when the Profile Snap is not used upstream.
- Spark mode: Does not support Spark mode.
Snap Settings
Label | Required. The name for the Snap. Modify this to be more specific, especially if there are more than one of the same Snap in the pipeline. |
---|---|
Policy | This setting allows you to specify your preferences about fields and transformations. For each field, it is possible to apply multiple transformations, this results in multiple output fields. Note that the policy is applied from top to bottom. |
Field | The field to be transformed. This is a suggestible field and will suggest all fields in the dataset. Default value: None |
Rule | The type of transformation to be performed on the selected field. Two options are available:
Please see the example below for better understanding. |
Prefix/Values | Categorical values to be used to replace original numeric values. You can use the values in this field either as a prefix or values. For example, if the prefix is "group", the values will be group_1, group_2 and so on. In case of specifying values, use comma "," to separate them. Default value: None |
Splits/Bins | The values to be entered into this field change based the selection you made in the Rule field.
Default value: None |
Result field | Required. The result field that must be used in the output map. If the Result field is the same as Field, the values are overwritten. If the Result field does not exist in the original input document, a new field is added. Default value: None |
Snap History