numpy 1.22.4 Pypi GitHub Homepage
Other Docs
ParametersReturns
_arraymethod(funcname, onmask=True)

Creates a class method which returns a masked array, where the new _data array is the output of the corresponding basic method called on the original _data .

If :None:None:`onmask` is True, the new mask is the output of the method called on the initial mask. Otherwise, the new mask is just a reference to the initial mask.

Parameters

funcname : str

Name of the function to apply on data.

onmask : bool

Whether the mask must be processed also (True) or left alone (False). Default is True. Make available as :None:None:`_onmask` attribute.

Returns

method : instancemethod

Class method wrapper of the specified basic array method.

Return a class method wrapper around a basic array method.

Examples

See :

Local connectivity graph

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


GitHub : /numpy/ma/core.py#2550
type: <class 'function'>
Commit: