()
| 2847 | |
| 2848 | |
| 2849 | def test_to_dask_array_single_partition(): |
| 2850 | s = pd.Series([1, 2, 3, 4, 5], name="foo", dtype="i4") |
| 2851 | a = dd.from_pandas(s) |
| 2852 | |
| 2853 | result = a.to_dask_array(lengths=True) |
| 2854 | assert isinstance(result, da.Array) |
| 2855 | expected_chunks = (s.shape,) |
| 2856 | assert result.chunks == expected_chunks |
| 2857 | da.assert_eq(s.values, result) |
| 2858 | |
| 2859 | |
| 2860 | def test_apply(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…