I\'m trying to use scikit-learn\'s LabelEncoder to encode a pandas DataFrame of string labels. As the dataframe has many (50+) columns, I want to a
LabelEncoder
DataFrame
The problem is the shape of the data (pd dataframe) you are passing to the fit function. You've got to pass 1d list.