How to determine whether a column/variable is numeric or not in Pandas/NumPy?

后端 未结 9 1999
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-01 02:47

Is there a better way to determine whether a variable in Pandas and/or NumPy is numeric or not ?

I have a self defined

9条回答
  •  自闭症患者
    2020-12-01 02:57

    Just to add to all other answers, one can also use df.info() to get whats the data type of each column.

提交回复
热议问题