This is documentation for an old release of NumPy (version 1.3.). Read this page Search for this page in the documentation of the latest stable release (version > 1.17).
numpy.ma.masked_invalid
-
numpy.ma.masked_invalid(a, copy=True)
- Mask the array for invalid values (NaNs or infs).
Any preexisting mask is conserved.