, value, copy=True, shrink=True)

Mask the array x where the data are exactly equal to value.

This function is suitable only for object arrays: for floating point, please use `masked_values`_ instead.


x : array_like

Array to mask

value : var

Comparison value

copy : {True, False}, optional

Whether to return a copy of x.

shrink : {True, False}, optional

Whether to collapse a mask full of False to nomask

Previous topic

Next topic

This Page

Quick search