(as_frame)
| 2784 | |
| 2785 | @pytest.mark.parametrize("as_frame", [False, False]) |
| 2786 | def test_to_dask_array_raises(as_frame): |
| 2787 | s = pd.Series([1, 2, 3, 4, 5, 6], name="foo") |
| 2788 | a = dd.from_pandas(s, npartitions=2) |
| 2789 | |
| 2790 | if as_frame: |
| 2791 | a = a.to_frame() |
| 2792 | |
| 2793 | with pytest.raises(ValueError, match="4 != 2"): |
| 2794 | a.to_dask_array((1, 2, 3, 4)) |
| 2795 | |
| 2796 | with pytest.raises(ValueError, match="Unexpected value"): |
| 2797 | a.to_dask_array(5) |
| 2798 | |
| 2799 | |
| 2800 | @pytest.mark.parametrize("as_frame", [False, True]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…