| 1380 | |
| 1381 | |
| 1382 | class 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 | |
| 1393 | class NLast(NFirst): |
no outgoing calls