Skip to content

Instantly share code, notes, and snippets.

@messiest
Last active July 3, 2018 20:26
Show Gist options
  • Save messiest/fae1190ceb0bbbf6c7a006dc8ed8a2b5 to your computer and use it in GitHub Desktop.
Save messiest/fae1190ceb0bbbf6c7a006dc8ed8a2b5 to your computer and use it in GitHub Desktop.
Checking if a pandas columns are numeric
for c in df.columns:
if np.issubdtype(df[c].dtype, np.number):
# do stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment