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

Function test_better_errors_object_reductions

dask/dataframe/tests/test_dataframe.py:4461–4467  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4459
4460
4461def test_better_errors_object_reductions():
4462 # GH2452
4463 s = pd.Series(["a", "b", "c", "d"])
4464 ds = dd.from_pandas(s, npartitions=2)
4465 with pytest.raises(ValueError) as err:
4466 ds.mean()
4467 assert str(err.value) == f"`mean` not supported with {ds.dtype} series"
4468
4469
4470def test_sample_empty_partitions():

Callers

nothing calls this directly

Calls 1

meanMethod · 0.45

Tested by

no test coverage detected