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

Class NFirst

dask/dataframe/dask_expr/_reductions.py:1382–1390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1380
1381
1382class NFirst(NLargest):
1383 _parameters = ["frame", "n", "_columns", "ascending", "split_every"]
1384 _defaults = {"n": 5, "_columns": None, "ascending": None, "split_every": None}
1385 reduction_chunk = staticmethod(_nfirst)
1386 reduction_aggregate = staticmethod(_nfirst)
1387
1388 @property
1389 def chunk_kwargs(self):
1390 return {"ascending": self.ascending, **super().chunk_kwargs}
1391
1392
1393class NLast(NFirst):

Callers 5

_simplify_upMethod · 0.90
_simplify_upMethod · 0.90
test_sort_head_nlargestFunction · 0.90

Calls

no outgoing calls