Skip to content

NSmallest

Base classes

Name Children Inherits
NLargest
datacook.engine.ops.rows

⋔ Inheritance diagram

graph TD
  1071775466["rows.NSmallest"]
  3232373248["rows.NLargest"]
  3484306131["base.CallOp"]
  1539482213["base.Op"]
  2751680898["builtins.object"]
  3232373248 --> 1071775466
  3484306131 --> 3232373248
  1539482213 --> 3484306131
  2751680898 --> 1539482213

🛈 DocStrings

Bases: NLargest

Source code in src/datacook/engine/ops/rows.py
class NSmallest(NLargest):
    id = "nsmallest"
    title = _("Smallest values")
    description = _("Keep the n rows with the smallest values in the given columns.")
    icon = "mdi.sort-numeric-ascending"
    method = "nsmallest"

:fa-brands-github: Show source on GitHub