dask 2021.10.0

ParametersBackRef
getdata(a)

This docstring was copied from numpy.ma.getdata.

Some inconsistencies with the Dask version may exist.

Return the data of a (if any) as an ndarray if a is a MaskedArray , else return a as a ndarray or subclass (depending on :None:None:`subok`) if not.

Parameters

a : array_like

Input MaskedArray , alternatively a ndarray or a subclass thereof.

subok : bool (Not supported in Dask)

Whether to force the output to be a :None:None:`pure` ndarray (False) or to return a subclass of ndarray if appropriate (True, default).

Return the data of a masked array as an ndarray.

See Also

getmask

Return the mask of a masked array, or nomask.

getmaskarray

Return the mask of a masked array, or full array of False.

Examples

This example is valid syntax, but we were not able to check execution
>>> import numpy.ma as ma  # doctest: +SKIP
... a = ma.masked_equal([[1,2],[3,4]], 2) # doctest: +SKIP
... a # doctest: +SKIP masked_array( data=[[1, --], [3, 4]], mask=[[False, True], [False, False]], fill_value=2)
This example is valid syntax, but we were not able to check execution
>>> ma.getdata(a)  # doctest: +SKIP
array([[1, 2],
       [3, 4]])

Equivalently use the MaskedArray :None:None:`data` attribute.

This example is valid syntax, but we were not able to check execution
>>> a.data  # doctest: +SKIP
array([[1, 2],
       [3, 4]])
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

dask.array.ma.getmaskarray

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


File: /dask/array/ma.py#104
type: <class 'function'>
Commit: