Answers for "see dtypes columns pandas"

15

how to check datatype of column in dataframe python

df['DataFrame Column'].dtypes
Posted by: Guest on August-20-2020
2

get columns based on dtype pandas

>>df.select_dtypes(include='object').columns

Index(['C', 'D'], dtype='object')
Posted by: Guest on March-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language