PyDocs

Nav

Data Types

nsmallest

heapq

function (source)
  • nsmallest(n, iterable, key=None)
Find the n smallest elements in a dataset.

Equivalent to:  sorted(iterable, key=key)[:n]
0 Examples
No examples for heapq/nsmallest.
See Also
No see-alsos for heapq/nsmallest
0 Notes
No notes for nsmallest