MCPcopy
hub / github.com/pandas-dev/pandas / agg

Method agg

pandas/tests/reshape/test_pivot.py:2237–2238  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

2235 def test_pivot_table_no_column_raises(self):
2236 # GH 10326
2237 def agg(arr):
2238 return np.mean(arr)
2239
2240 df = DataFrame({"X": [0, 0, 1, 1], "Y": [0, 1, 0, 1], "Z": [10, 20, 30, 40]})
2241 with pytest.raises(KeyError, match="notpresent"):

Calls 1

meanMethod · 0.45

Tested by

no test coverage detected