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

Function func

dask/dataframe/io/tests/test_io.py:799–803  ·  view source on GitHub ↗
(input, size=0)

Source from the content-addressed store, hash-verified

797 # and basic kwargs work as expected for `from_map`
798
799 def func(input, size=0):
800 # Simple function to create Series with a
801 # repeated value and index
802 value, index = input
803 return pd.Series([value] * size, index=[index] * size)
804
805 iterable = [(vals[0], 1), (vals[1], 2)]
806 ser = dd.from_map(func, iterable, size=2)

Callers 2

_extra_depsFunction · 0.50
read_parquet_partFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected