()
| 4459 | |
| 4460 | |
| 4461 | def 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 | |
| 4470 | def test_sample_empty_partitions(): |