The sklearn Ordinal Encoder offers the ability to turn categorical data into numerical data by ordering the labels used. Beware, as this can make things go awary if misused. In general, One Hot Encoding is a better choice than Ordinal Encoding unless there is a specific reason that categorical variables should be ranked in some away.
Ещё видео!