---
title: "Discussion on \"How to find the count of only numeric columns in Pandas DataFrame?\" | Hashnode"
description: "Discussion on \"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\nnumerics = ['int16', 'int32', 'int64', 'float16', 'float32', 'float64']\nnumeric_df = df.select_dtypes(include=num..."
url: "https://hashnode.com/posts/how-to-find-the-count-of-only-numeric-columns-in-pandas-dataframe/617d1a80d55bde5cb6681027"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to find the count of only numeric columns in Pandas DataFrame?](https://helloshreyas.com/how-to-find-the-count-of-only-numeric-columns-in-pandas-dataframe?utm_source=hashnode&utm_medium=feed)

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...

Oct 30, 2021 · 1 min read · helloshreyas.com  
Read the article

-   [#pandas](https://hashnode.com/tag/pandas)
-   [#python3](https://hashnode.com/tag/python3)
-   [#data-analysis](https://hashnode.com/tag/data-analysis)
-   [#data-science](https://hashnode.com/tag/data-science)

## Written by

[Shreyas Kulkarni](https://hashnode.com/@shreyaskulkarni)

@shreyaskulkarni · India

  
[View profile](https://hashnode.com/@shreyaskulkarni)

I build, write, and explore around AI, data, and technology.

I build, write and explore around AI, data, and technology. Sometimes it’s experiments, sometimes it’s just reflections. All of it helps me learn.

## Responses 1

Markdown supported · ⌘↵ to post

[Marcelo Zárate](https://hashnode.com/@marcelozarate)

[Nov 8, 2021](https://hashnode.com/posts/how-to-find-the-count-of-only-numeric-columns-in-pandas-dataframe/617d1a80d55bde5cb6681027/comment/61893a07ce9e5f6dfd78547e)

This would have saved me a lot of code lines! As a newbie in Pandas, didn't know this. Great.

[Shreyas Kulkarni](https://hashnode.com/@shreyaskulkarni)

[Nov 9, 2021](https://hashnode.com/posts/how-to-find-the-count-of-only-numeric-columns-in-pandas-dataframe/617d1a80d55bde5cb6681027/comment/61893a07ce9e5f6dfd78547e#reply-6189f252ce9e5f6dfd785d26)

glad to hear it helped you... thanks 😊
