Last active
July 3, 2018 20:26
-
-
Save messiest/fae1190ceb0bbbf6c7a006dc8ed8a2b5 to your computer and use it in GitHub Desktop.
Checking if a pandas columns are numeric
This file contains hidden or 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
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