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

Function test_scalar_agg_varargs

python/pyarrow/tests/test_udf.py:784–792  ·  view source on GitHub ↗
(varargs_agg_func_fixture)

Source from the content-addressed store, hash-verified

782
783@pytest.mark.numpy
784def test_scalar_agg_varargs(varargs_agg_func_fixture):
785 arr1 = pa.array([10, 20, 30, 40, 50], pa.int64())
786 arr2 = pa.array([1.0, 2.0, 3.0, 4.0, 5.0], pa.float64())
787
788 result = pc.call_function(
789 "sum_mean", [arr1, arr2]
790 )
791 expected = pa.scalar(33.0)
792 assert result == expected
793
794
795@pytest.mark.numpy

Callers

nothing calls this directly

Calls 2

arrayMethod · 0.45
scalarMethod · 0.45

Tested by

no test coverage detected