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

Function test_autocorr

dask/dataframe/tests/test_dataframe.py:3247–3254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3245
3246
3247def test_autocorr():
3248 x = pd.Series(np.random.random(100))
3249 dx = dd.from_pandas(x, npartitions=10)
3250 assert_eq(dx.autocorr(2), x.autocorr(2))
3251 assert_eq(dx.autocorr(0), x.autocorr(0))
3252 assert_eq(dx.autocorr(-2), x.autocorr(-2))
3253 assert_eq(dx.autocorr(2, split_every=3), x.autocorr(2))
3254 pytest.raises(TypeError, lambda: dx.autocorr(1.5))
3255
3256
3257def test_apply_infer_columns():

Callers

nothing calls this directly

Calls 3

autocorrMethod · 0.95
assert_eqFunction · 0.90
randomMethod · 0.45

Tested by

no test coverage detected