MCPcopy Create free account
hub / github.com/numpy/numpy / __array__

Method __array__

numpy/ma/tests/test_core.py:4630–4631  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4628 _data = "nonsense"
4629
4630 def __array__(self):
4631 return np.array([5, np.nan, np.inf])
4632
4633 arr = np.ma.masked_invalid(Series())
4634 assert_array_equal(arr._data, np.array(Series()))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected