What is the best way to handle ordinal features having numeric values in python?

by alim1990   Last Updated October 10, 2019 03:19 AM

What is the best way to encode ordinal feature?

  1. Is it by transforming it using OneHotEncoder so values going from 1 to 7 lets say would become head of new field feature.

  2. Or by using StandardScaler() to scale the values between -1 and 1 ?



Related Questions


Updated April 24, 2018 07:19 AM

Updated May 28, 2019 09:19 AM

Updated August 14, 2019 15:19 PM

Updated August 27, 2019 09:19 AM