count_masked(arr, axis=None)
An array with (possibly) masked elements.
Axis along which to count. If None (default), a flattened version of the array is used.
The total number of masked elements (axis=None) or the number of masked elements along each slice of the given axis.
Count the number of masked elements along the given axis.
MaskedArray.count
Count non-masked elements.
>>> import numpy.ma as ma
... a = np.arange(9).reshape((3,3))
... a = ma.array(a)
... a[1, 0] = ma.masked
... a[1, 2] = ma.masked
... a[2, 1] = ma.masked
... a masked_array( data=[[0, 1, 2], [--, 4, --], [6, --, 8]], mask=[[False, False, False], [ True, False, True], [False, True, False]], fill_value=999999)
>>> ma.count_masked(a) 3
When the :None:None:`axis`
keyword is used an array is returned.
>>> ma.count_masked(a, axis=0) array([1, 1, 1])
>>> ma.count_masked(a, axis=1) array([0, 2, 1])See :
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them