MCPcopy
hub / github.com/dask/dask / f

Function f

dask/dataframe/tests/test_dataframe.py:933–939  ·  view source on GitHub ↗
(df, partition_info=None)

Source from the content-addressed store, hash-verified

931
932def test_map_partitions_partition_info():
933 def f(df, partition_info=None):
934 assert partition_info is not None
935 assert "number" in partition_info
936 assert "division" in partition_info
937 assert dsk[("x", partition_info["number"])].equals(df)
938 assert dsk[("x", d.divisions.index(partition_info["division"]))].equals(df)
939 return df
940
941 df = d.map_partitions(f, meta=d)
942 result = df.compute(scheduler="single-threaded")

Callers 5

test_pipeFunction · 0.70
test_nlargest_nsmallestFunction · 0.70

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected