numpy.ma.size()

numpy.ma.size

numpy.ma.size(obj, axis=None) [source]

Return the number of elements along a given axis.

Parameters:

a : array_like

Input data.

axis : int, optional

Axis along which the elements are counted. By default, give the total number of elements.

Returns:

element_count : int

Number of elem