MCPcopy
hub / github.com/dask/dask / _empty_series

Function _empty_series

dask/dataframe/utils.py:261–267  ·  view source on GitHub ↗
(name, dtype, index=None)

Source from the content-addressed store, hash-verified

259
260
261def _empty_series(name, dtype, index=None):
262 if isinstance(dtype, str) and dtype == "category":
263 s = pd.Series(pd.Categorical([UNKNOWN_CATEGORIES]), name=name).iloc[:0]
264 if index is not None:
265 s.index = make_meta(index)
266 return s
267 return pd.Series([], dtype=dtype, name=name, index=index)
268
269
270_simple_fake_mapping: dict[str, Any] = {

Callers 1

make_meta_objectFunction · 0.90

Calls 1

make_metaFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…