Answers for "how to get columns in pandas on the basis of data ttype"

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

Code answers related to "how to get columns in pandas on the basis of data ttype"

Python Answers by Framework

Browse Popular Code Answers by Language