Created
March 11, 2018 05:06
-
-
Save kumar1202/67eab6abe9a3265d2da8a4064376bd5e to your computer and use it in GitHub Desktop.
This file contains 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
# Adding columns as index | |
df.set_index('column_name') | |
# Dropping columns or rows | |
df.drop(['x1','x2'],axis = (1 or 0)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment