count class types in pandas code example Example: count class types in pandas df.dtypes.value_counts()