Skip to content

Instantly share code, notes, and snippets.

Created July 10, 2019 07:26
What would you like to do?
from sklearn.preprocessing import LabelEncoder
le = LabelEncoder()
classes= list(le.classes_)
Copy link

i got this error

File "E:\New folder (6)\lib\site-packages\sklearn\preprocessing\", line 235, in fit_transform
y = column_or_1d(y, warn=True)

File "E:\New folder (6)\lib\site-packages\sklearn\utils\", line 760, in column_or_1d
raise ValueError("bad input shape {0}".format(shape))

ValueError: bad input shape (105, 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment