MCPcopy Create free account
hub / github.com/apache/arrow / test_scalar_agg_basic

Function test_scalar_agg_basic

python/pyarrow/tests/test_udf.py:756–760  ·  view source on GitHub ↗
(unary_agg_func_fixture)

Source from the content-addressed store, hash-verified

754
755@pytest.mark.numpy
756def test_scalar_agg_basic(unary_agg_func_fixture):
757 arr = pa.array([10.0, 20.0, 30.0, 40.0, 50.0], pa.float64())
758 result = pc.call_function("mean_udf", [arr])
759 expected = pa.scalar(30.0)
760 assert result == expected
761
762
763@pytest.mark.numpy

Callers

nothing calls this directly

Calls 2

arrayMethod · 0.45
scalarMethod · 0.45

Tested by

no test coverage detected