reclassifynode properties
Last updated: Feb 11, 2025
The Reclassify node transforms one set of categorical values
to another. Reclassification is useful for collapsing categories or regrouping data for
analysis.
Example
node = stream.create("reclassify", "My node") node.setPropertyValue("mode", "Multiple") node.setPropertyValue("replace_field", True) node.setPropertyValue("field", "Drug") node.setPropertyValue("new_name", "Chemical") node.setPropertyValue("fields", ["Drug", "BP"]) node.setPropertyValue("name_extension", "reclassified") node.setPropertyValue("add_as", "Prefix") node.setKeyedPropertyValue("reclassify", "drugA", True) node.setPropertyValue("use_default", True) node.setPropertyValue("default", "BrandX") node.setPropertyValue("pick_list", ["BrandX", "Placebo", "Generic"])
properties |
Data type | Property description |
---|---|---|
|
|
reclassifies the categories for one field.
activates options enabling the transformation of more than one field at a time. |
|
flag | |
|
string | Used only in Single mode. |
|
string | Used only in Single mode. |
|
[field1 field2 ... fieldn] | Used only in Multiple mode. |
|
string | Used only in Multiple mode. |
|
|
Used only in Multiple mode. |
|
string | Structured property for field values. |
|
flag | Use the default value. |
|
string | Specify a default value. |
|
[string string … string] | Allows a user to import a list of known new values to populate the drop-down list in the table. |
Was the topic helpful?
0/1000