Skip to content

Instantly share code, notes, and snippets.

@ayoskovich
Last active September 5, 2020 19:37
Show Gist options
  • Save ayoskovich/4dc836192e93581494049985e8653197 to your computer and use it in GitHub Desktop.
Save ayoskovich/4dc836192e93581494049985e8653197 to your computer and use it in GitHub Desktop.
Top / bottom 3 values of column named 'lat'.
df.nlargest(3, 'lat')
df.nsmallest(3, 'lat')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment