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

Class NFirst

dask/dataframe/dask_expr/_reductions.py:1384–1392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

_simplify_upMethod · 0.90
_simplify_upMethod · 0.90
test_sort_head_nlargestFunction · 0.90

Calls

no outgoing calls