(split_every)
| 4050 | |
| 4051 | @pytest.mark.parametrize("split_every", [None, 2]) |
| 4052 | def test_split_out_value_counts(split_every): |
| 4053 | df = pd.DataFrame({"x": [1, 2, 3] * 100}) |
| 4054 | ddf = dd.from_pandas(df, npartitions=5) |
| 4055 | |
| 4056 | assert ddf.x.value_counts(split_out=10, split_every=split_every).npartitions == 10 |
| 4057 | assert_eq( |
| 4058 | ddf.x.value_counts(split_out=10, split_every=split_every), df.x.value_counts() |
| 4059 | ) |
| 4060 | |
| 4061 | |
| 4062 | def test_values(): |
nothing calls this directly
no test coverage detected