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