MCPcopy Create free account
hub / github.com/dask/dask / test_map_partitions

Function test_map_partitions

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

Source from the content-addressed store, hash-verified

912
913
914def test_map_partitions():
915 assert_eq(d.map_partitions(lambda df: df, meta=d), full)
916 assert_eq(d.map_partitions(lambda df: df), full)
917 result = d.map_partitions(lambda df: df.sum(axis=1))
918 assert_eq(result, full.sum(axis=1))
919
920 assert_eq(
921 d.map_partitions(lambda df: 1),
922 pd.Series([1, 1, 1], dtype=np.int64),
923 check_divisions=False,
924 check_index=False,
925 )
926
927
928def test_map_partitions_type():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
map_partitionsMethod · 0.45
sumMethod · 0.45

Tested by

no test coverage detected