Created
April 8, 2021 05:38
-
-
Save adityaiitb/e0b3bac02ed857856f569fbb7e720b75 to your computer and use it in GitHub Desktop.
Pandas commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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