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

Function test_mode

dask/dataframe/dask_expr/tests/test_collection.py:395–399  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393
394
395def test_mode():
396 pdf = pd.DataFrame({"x": [1, 2, 3, 1, 2]})
397 df = from_pandas(pdf, npartitions=3)
398
399 assert_eq(df.x.mode(), pdf.x.mode(), check_names=False)
400
401
402def test_value_counts(df, pdf):

Callers

nothing calls this directly

Calls 3

from_pandasFunction · 0.90
assert_eqFunction · 0.90
modeMethod · 0.45

Tested by

no test coverage detected