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 History node creates new fields containing data from fields in previous
records. History nodes are most often used for sequential data, such as time series data. Before
using a History node, you may want to sort the data using a Sort node.
Example
node = stream.create("history", "My node") node.setPropertyValue("fields", ["Drug"]) node.setPropertyValue("offset", 1) node.setPropertyValue("span", 3) node.setPropertyValue("unavailable", "Discard") node.setPropertyValue("fill_with", "undef")
properties |
Data type | Property description |
---|---|---|
|
list | Fields for which you want a history. |
|
number | Specifies the latest record (prior to the current record) from which you want to extract historical field values. |
|
number | Specifies the number of prior records from which you want to extract values. |
|
|
For handling records that have no history values, usually referring to the first several records (at the beginning of the dataset) for which there are no previous records to use as a history. |
|
|
Specifies a value or string to be used for records where no history value is available. |
Was the topic helpful?
0/1000