MCPcopy Index your code
hub / github.com/dask/dask / test_array_to_df_conversion

Function test_array_to_df_conversion

dask/dataframe/tests/test_dataframe.py:5343–5350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5341
5342
5343def test_array_to_df_conversion():
5344 def foo(arr):
5345 return pd.DataFrame(arr)
5346
5347 arr = da.random.random((100, 10), chunks=(10, 10))
5348 result = arr.map_blocks(foo, meta=pd.DataFrame(np.random.random((1, 10))))
5349 expected = pd.DataFrame(arr.compute())
5350 assert_eq(result, expected, check_index=False)
5351
5352
5353@pytest.mark.parametrize("npartitions", [1, 5])

Callers

nothing calls this directly

Calls 4

assert_eqFunction · 0.90
randomMethod · 0.45
map_blocksMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…