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

Function f

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

Source from the content-addressed store, hash-verified

933
934def test_map_partitions_partition_info():
935 def f(df, partition_info=None):
936 assert partition_info is not None
937 assert "number" in partition_info
938 assert "division" in partition_info
939 assert dsk[("x", partition_info["number"])].equals(df)
940 assert dsk[("x", d.divisions.index(partition_info["division"]))].equals(df)
941 return df
942
943 df = d.map_partitions(f, meta=d)
944 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