LabelEncoder: Convert a single categorical variable to ordinal labels. OrdinalEncoder: Independently convert each column into a 2D data structure into ordinal labels.

ChatGPT claims that LabelEncoder has a slightly simpler implementation, though I have not checked the code.