Sentinel Value
noun
say it: “SEN-tih-nul VAL-yoo” /ˈsɛntənəl ˈvælju/
A made-up value, such as -999, that stands for "no value here" in data, and has to be treated as missing before any math is done.
What is a sentinel value?
A sentinel value is a stand-in, such as -999 or 0, that a device or a file writes to mean "no reading here". It looks like a number, so left as it is it drags every average and total with it; turn it into a missing value before doing any math.
import numpy as np
readings["temp_f"] = readings["temp_f"].replace(-999, np.nan) # -999 meant "no reading"
In a sentence
- “Before averaging, she turned every sentinel value into NaN.”
- “The weather station wrote the sentinel value -999 whenever its sensor dropped out.”
Level: Apprentice · More Software Development terms at this level
Updated