How to print the type of a column in Pandas

0 min

An easy way to check the column types of a pandas.DataFrame is to print the DataFrame.dtypes DataFrame attribute.

Here is an example

# Print the type of each column
How to print the type of each columns using the .dtypes attribute

Here you are ! You know now how to print the dtypes of every columns of a DataFrame.