Skip to content

IsPresent() Source

Bases: Rule

Keep the values that are not missing. It is the opposite of IsMissing.

Added in version 0.1.0

Examples:

import numdaplot as ndp

temperatures = ndp.Array.from_list([12.5, None, 18.0])
temperatures.select(ndp.IsPresent())
# Array([12.5, 18. ], dtype=FLOAT64)