How to find the count of only numeric columns in Pandas DataFrame?
Often times we have 100+ columns in the dataset and we have to find out how many columns are numeric and ultimately count of the columns
numerics = ['int16', 'int32', 'int64', 'float16', 'float32', 'float64']
numeric_df = df.select_dtypes(include=num...
helloshreyas.com1 min read
Marcelo Zárate
A bit of everything & a lot of nothing developer
This would have saved me a lot of code lines! As a newbie in Pandas, didn't know this. Great.