Data Transformation, Sklearn, Machine Learning, One Hot Encoding, Label Encoding.
ohe.fit_transform(df0[['Marital Status']]) If we have a high number of categorical variables in a column, then we should avoid using one-hot encoding. It will result in an increase in the number of corresponding columns which will give rise to a problem called “Curse of Dimensionality”[4]. Example