numpy.ma.notmasked_contiguous()

numpy.ma.notmasked_contiguous

numpy.ma.notmasked_contiguous(a, axis=None) [source]

Find contiguous unmasked data in a masked array along the given axis.

Parameters:

a : array_like

The input array.

axis : int, optional

Axis along which to perform the operation. If None (default), applies to a flattened version of the array.

Returns: