This likely means that one of your columns is incompatible as a categorical data type or a continuous datatype. You can check the types using dtype.
for col in df.columns:
print(col)
print(df[col].dtype)
print(df.cat_column.dtype == 'category')