Introduction
Using categorical data type saves memory and speeds up analysis when working with repeated text values.
You have a column with repeated text labels like colors or categories.
You want to reduce the memory used by your dataset.
You want faster grouping or filtering on text columns.
You need to prepare data for machine learning models that work better with categories.
You want to improve performance when working with large datasets.