Should I use both OneHotEncoder and OrdinalEncoder in one dataset?

Viewed 76

if a dataset contains both nominal and ordinal columns, is the dataset need different encoders like OneHotEncoder for nominal and OrdinalEncoder for ordinal values?

1 Answers

Yes, categorical/nominal and numeric (including ordinal) variables need to be treated differently, and it is very.common to encounter datasets with several types of variables.

Related