This is documentation for an old release of NumPy (version 1.13). Read this page in the documentation of the latest stable release (version 2.2).
Masked arrays¶
Masked arrays are arrays that may have missing or invalid entries.
The numpy.ma
module provides a nearly work-alike replacement for numpy
that supports data arrays with masks.