Skip to content

Instantly share code, notes, and snippets.

@kumar1202
Created March 11, 2018 05:06
Show Gist options
  • Save kumar1202/67eab6abe9a3265d2da8a4064376bd5e to your computer and use it in GitHub Desktop.
Save kumar1202/67eab6abe9a3265d2da8a4064376bd5e to your computer and use it in GitHub Desktop.
# 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