Skip to content

Instantly share code, notes, and snippets.

@okdolly-001
Last active March 16, 2018 02:59
Show Gist options
  • Save okdolly-001/e93512fcee3deaf24008cd42078c729b to your computer and use it in GitHub Desktop.
Save okdolly-001/e93512fcee3deaf24008cd42078c729b to your computer and use it in GitHub Desktop.
Deleting columns with all of the same value #pandas
df.drop(df.std()[(df.std() == 0)].index, axis=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment