About the Cleanser node

The cleanser node provides a schema to replace the NaN values in the set of data source. It supports only for BINumeric value types which primarily represent a numeric value stored as a double. For example, if you set the fan switch to true or false, the cleanser node provides an error that says it "works only with BINumerics stored in the "value" property”.

To use the CleanserNode component, drag it from the Series Transform palette onto the Wire Sheet view and connect a HistorySource output to the Cleanser Inputs slot. Double-click on the Cleanser component in the Wire Sheet view, and use the detectors and replacers in the Cleanser window to replace the NaN values in the data source.

Figure 32.   Cleanser Editor
Image

Connect the output from the Filter node to another SeriesTransform node input or directly to a Terminal Node input as desired.

The cleanser node have only one NanDetector and four replacers types.

  • ReplaceWithInterpolation: If a NaN value is detected in the source data, replace with the average of the previous record and the next record which have valid non-NaN values
  • ReplaceWithLastGood: If a NaN value is detected in the source data, replace with the previous record which has a valid non-NaN value.
  • ReplaceWithNextGood: If a NaN value is detected in the source data, replace with the next record which has a valid non-NaN value.
  • ReplaceWithZero: If a NaN value is detected in the source data, replace the NaN values with a zero value.

Figure 33.   Cleanser Node on Wire Sheet
Image

Resolve the graph by using the NaNDetector and different replacers in the cleanser editor and check the table it displays the numeric values without NaN values in the data source.