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

Function test_value_counts

dask/dataframe/dask_expr/tests/test_reductions.py:106–111  ·  view source on GitHub ↗
(pdf, df, split_every, split_out)

Source from the content-addressed store, hash-verified

104@pytest.mark.parametrize("split_every", [False, None, 5])
105@pytest.mark.parametrize("split_out", [1, True])
106def test_value_counts(pdf, df, split_every, split_out):
107 assert_eq(
108 df.x.value_counts(split_every=split_every, split_out=split_out),
109 pdf.x.value_counts(),
110 check_index=split_out is not True,
111 )
112
113
114def test_value_counts_sort(pdf):

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
value_countsMethod · 0.45

Tested by

no test coverage detected