MCPcopy Create free account
hub / github.com/dask/dask / my_sum

Function my_sum

dask/dataframe/dask_expr/tests/test_rolling.py:84–85  ·  view source on GitHub ↗
(vals, foo=None, *, bar=None)

Source from the content-addressed store, hash-verified

82@pytest.mark.parametrize("df", (1, 2), indirect=True)
83def test_rolling_agg(df, pdf, window):
84 def my_sum(vals, foo=None, *, bar=None):
85 return vals.sum()
86
87 result = df.rolling(window).agg(my_sum, "foo", bar="bar")
88 expected = pdf.rolling(window).agg(my_sum, "foo", bar="bar")

Callers

nothing calls this directly

Calls 1

sumMethod · 0.45

Tested by

no test coverage detected