MCPcopy
hub / github.com/pydata/xarray / test_groupby_map_shrink_groups

Function test_groupby_map_shrink_groups

xarray/tests/test_groupby.py:240–243  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

238 ],
239)
240def test_groupby_map_shrink_groups(obj) -> None:
241 expected = obj.isel(x=[0, 1, 3, 4])
242 actual = obj.groupby("x").map(lambda f: f.isel(x=[0, 1]))
243 assert_identical(expected, actual)
244
245
246@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 4

assert_identicalFunction · 0.90
iselMethod · 0.45
mapMethod · 0.45
groupbyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…