MCPcopy
hub / github.com/numpy/numpy / test_meananom_object

Method test_meananom_object

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

Source from the content-addressed store, hash-verified

4197 assert_equal(a.prod(axis=0), [4, 10, 18])
4198
4199 def test_meananom_object(self):
4200 # Test mean/anom on object dtype
4201 a = masked_array([1, 2, 3], dtype=object)
4202 assert_equal(a.mean(), 2)
4203 assert_equal(a.anom(), [-1, 0, 1])
4204
4205 def test_anom_shape(self):
4206 a = masked_array([1, 2, 3])

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
anomMethod · 0.80
meanMethod · 0.45

Tested by

no test coverage detected