Is there a better way to determine whether a variable in Pandas and/or NumPy is numeric or not ?
Pandas
NumPy
numeric
I have a self defined
Pandas has select_dtype function. You can easily filter your columns on int64, and float64 like this:
select_dtype
df.select_dtypes(include=['int64','float64'])