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

Function test_quantile_missing

dask/dataframe/tests/test_dataframe.py:1394–1405  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

1392 ],
1393)
1394def test_quantile_missing(method):
1395 df = pd.DataFrame({"A": [0, np.nan, 2]})
1396 # TODO: Test npartitions=2
1397 # (see https://github.com/dask/dask/issues/9227)
1398 ddf = dd.from_pandas(df, npartitions=1)
1399 expected = df.quantile()
1400 result = ddf.quantile(method=method)
1401 assert_eq(result, expected)
1402
1403 expected = df.A.quantile()
1404 result = ddf.A.quantile(method=method)
1405 assert_eq(result, expected)
1406
1407
1408@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

quantileMethod · 0.95
assert_eqFunction · 0.90
quantileMethod · 0.45

Tested by

no test coverage detected