Pandas > View columns types

Name
Code
Output
dataframe = pandas.DataFrame({
    'C1': pandas.date_range('20170101', periods=4),
    'C2' : [10,20,30,40],
    'C3': pandas.Categorical(['A','B','C','D']),
    'C4': 1})
print ("dataframe column types")
print (dataframe.dtypes)
dataframe column types
C1    datetime64[ns]
C2             int64
C3          category
C4             int64
dtype: object