python dataframe check if dtype is category code example Example: how to check if the dataframe the category types df.dtype.name