| 1382 | |
| 1383 | |
| 1384 | class 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 | |
| 1395 | class NLast(NFirst): |
no outgoing calls