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

Function f

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

Source from the content-addressed store, hash-verified

915
916def test_map_partitions_partition_info():
917 def f(df, partition_info=None):
918 assert partition_info is not None
919 assert "number" in partition_info
920 assert "division" in partition_info
921 assert dsk[("x", partition_info["number"])].equals(df)
922 assert dsk[("x", d.divisions.index(partition_info["division"]))].equals(df)
923 return df
924
925 df = d.map_partitions(f, meta=d)
926 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