One-hot encoding
Turning a category into a vector of zeros with a single one, so models can use it.
A colour feature with values red, green and blue becomes three columns: red = (1, 0, 0), green = (0, 1, 0), blue = (0, 0, 1). This avoids pretending the categories have an order, which would happen if you coded them as 1, 2, 3.
With many categories (city, product ID) one-hot creates huge sparse matrices; alternatives are frequency or target encoding, hashing, or learned embeddings. Tree libraries such as LightGBM and CatBoost can also handle categories natively.