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

Function safe_head

dask/dataframe/core.py:380–387  ·  view source on GitHub ↗
(df, n)

Source from the content-addressed store, hash-verified

378
379
380def safe_head(df, n):
381 r = M.head(df, n)
382 if len(r) != n:
383 warnings.warn(
384 f"Insufficient elements for `head`. {n} elements requested, only {len(r)} "
385 "elements available. Try passing larger `npartitions` to `head`."
386 )
387 return r
388
389
390def _repr_data_series(s, index):

Callers

nothing calls this directly

Calls 1

headMethod · 0.45

Tested by

no test coverage detected