()
| 4480 | |
| 4481 | |
| 4482 | def test_coerce(): |
| 4483 | df = pd.DataFrame(np.arange(100).reshape((10, 10))) |
| 4484 | ddf = dd.from_pandas(df, npartitions=2) |
| 4485 | funcs = (int, float, complex) |
| 4486 | for d, t in product(funcs, (ddf, ddf[0])): |
| 4487 | pytest.raises(TypeError, lambda t=t, d=d: t(d)) |
| 4488 | |
| 4489 | |
| 4490 | def test_bool(): |