Answers for "check columns in pandas"

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
1

how to find columns of a dataframe

list(my_dataframe.columns.values)
Posted by: Guest on June-23-2020

Code answers related to "check columns in pandas"

Python Answers by Framework

Browse Popular Code Answers by Language