Skip to content

Instantly share code, notes, and snippets.

@sllynn
Created October 2, 2019 15:37
Show Gist options
  • Save sllynn/cc93bcc82aa1767628bfb3c76fb7247c to your computer and use it in GitHub Desktop.
Save sllynn/cc93bcc82aa1767628bfb3c76fb7247c to your computer and use it in GitHub Desktop.
Example of selecting groups of columns in a pandas dataframe using numpy slicing tools
data.iloc[:, np.r_[5:data.columns.size,1]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment