Label encoding

From Rice Wiki

Label encoding encodes ordinal categorical data into numerical ones by representing them as discrete numbers. It does not work for nominal data.