About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
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