how to see if column in pd dataframe is categorical code example Example: how to check if the dataframe the category types df.dtype.name