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

Function test_value_counts

dask/dataframe/dask_expr/tests/test_collection.py:412–417  ·  view source on GitHub ↗
(df, pdf)

Source from the content-addressed store, hash-verified

410
411
412def test_value_counts(df, pdf):
413 with pytest.raises(
414 AttributeError, match="'DataFrame' object has no attribute 'value_counts'"
415 ):
416 df.value_counts()
417 assert_eq(df.x.value_counts(), pdf.x.value_counts().astype("int64"))
418
419
420def test_dropna(pdf):

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
value_countsMethod · 0.45
astypeMethod · 0.45

Tested by

no test coverage detected