Skip to content

Instantly share code, notes, and snippets.

@adityaiitb
Created April 8, 2021 05:38
Show Gist options
  • Save adityaiitb/e0b3bac02ed857856f569fbb7e720b75 to your computer and use it in GitHub Desktop.
Save adityaiitb/e0b3bac02ed857856f569fbb7e720b75 to your computer and use it in GitHub Desktop.
Pandas commands
# Show all rows
pd.set_option('display.max_rows', None)
# Reset index after an operation
df.sort_values(['country', 'capital']).reset_index(drop=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment