numpy.ma.masked_object

numpy.ma.masked_object(x, 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.

Parameters:

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

numpy.ma.masked_not_equal

Next topic

numpy.ma.masked_outside

This Page

Quick search