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

Function test_rolling_one_element_window

dask/dataframe/dask_expr/tests/test_rolling.py:132–137  ·  view source on GitHub ↗
(df, pdf)

Source from the content-addressed store, hash-verified

130
131
132def test_rolling_one_element_window(df, pdf):
133 pdf.index = pd.date_range("2000-01-01", periods=12, freq="2s")
134 df = from_pandas(pdf, npartitions=3)
135 result = pdf.foo.rolling("1s").count()
136 expected = df.foo.rolling("1s").count()
137 assert_eq(result, expected)
138
139
140@pytest.mark.parametrize("window", ["2s", "5s", "20s", "10h"])

Callers

nothing calls this directly

Calls 4

from_pandasFunction · 0.90
assert_eqFunction · 0.90
countMethod · 0.45
rollingMethod · 0.45

Tested by

no test coverage detected