Categorical dtype (Pandas)

The category dtype stores a column as a fixed set of distinct values plus integer codes pointing into them, instead of repeating the full strings. It saves…