()
| 4455 | |
| 4456 | |
| 4457 | def test_coerce(): |
| 4458 | df = pd.DataFrame(np.arange(100).reshape((10, 10))) |
| 4459 | ddf = dd.from_pandas(df, npartitions=2) |
| 4460 | funcs = (int, float, complex) |
| 4461 | for d, t in product(funcs, (ddf, ddf[0])): |
| 4462 | pytest.raises(TypeError, lambda t=t, d=d: t(d)) |
| 4463 | |
| 4464 | |
| 4465 | def test_bool(): |