print columns of a particular data type in dataframe code example
Example: get columns based on dtype pandas
>>df.select_dtypes(include='object').columns
Index(['C', 'D'], dtype='object')
>>df.select_dtypes(include='object').columns
Index(['C', 'D'], dtype='object')