()
| 5359 | |
| 5360 | |
| 5361 | def test_array_to_df_conversion(): |
| 5362 | def foo(arr): |
| 5363 | return pd.DataFrame(arr) |
| 5364 | |
| 5365 | arr = da.random.random((100, 10), chunks=(10, 10)) |
| 5366 | result = arr.map_blocks(foo, meta=pd.DataFrame(np.random.random((1, 10)))) |
| 5367 | expected = pd.DataFrame(arr.compute()) |
| 5368 | assert_eq(result, expected, check_index=False) |
| 5369 | |
| 5370 | |
| 5371 | @pytest.mark.parametrize("npartitions", [1, 5]) |
nothing calls this directly
no test coverage detected