MCPcopy
hub / github.com/dask/dask / test_resample_agg

Function test_resample_agg

dask/dataframe/tseries/tests/test_resample.py:75–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73
74
75def test_resample_agg():
76 index = pd.date_range("2000-01-01", "2000-02-15", freq="h")
77 ps = pd.Series(range(len(index)), index=index)
78 ds = dd.from_pandas(ps, npartitions=2)
79
80 assert_eq(ds.resample("10min").agg("mean"), ps.resample("10min").agg("mean"))
81 assert_eq(
82 ds.resample("10min").agg(["mean", "min"]),
83 ps.resample("10min").agg(["mean", "min"]),
84 )
85
86
87def test_resample_agg_passes_kwargs():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
resampleMethod · 0.80
aggMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…