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 Histogram node shows the occurrence of values for numeric
fields. It's often used to explore the data before manipulations and model building. Similar to the
Distribution node, the Histogram node frequently reveals imbalances in the data.
Example
stream = modeler.script.stream()
typenode = stream.findByID("id42KW3MSA94B")
node = stream.create("histogram", "My node")
stream.link(typenode, node)
# "Plot" tab
node.setPropertyValue("field", "Drug")
node.setPropertyValue("color_field", "Drug")
node.setPropertyValue("panel_field", "Sex")
# "Options" tab
node.setPropertyValue("range_mode", "UserDefined")
node.setPropertyValue("range_min", 1.0)
node.setPropertyValue("range_max", 100.0)
node.setPropertyValue("num_bins", 10)
node.setPropertyValue("normalize", True)
node.setPropertyValue("separate_bands", False)
properties |
Data type | Property description |
---|---|---|
|
field | |
|
field | |
|
field | |
|
field | |
|
|
|
|
number | |
|
number | |
|
|
|
|
number | |
|
number | |
|
flag | |
|
flag | |
|
flag | |
|
string | |
|
flag | |
|
string | |
|
flag | |
|
color | Standard graph colors are described at the beginning of this section. |
|
color | Standard graph colors are described at the beginning of this section. |
|
flag | Indicates whether the normal distribution curve should be shown on the output. |
Was the topic helpful?
0/1000