error self._encoder = LabelEncoder() NameError: name 'LabelEncoder' is not defined

3,940 views
Skip to first unread message

Review Football

unread,
Jun 30, 2019, 8:31:44 AM6/30/19
to spyder
I am getting this error in spider pls help me out
reviews.py

Savin Beniwal

unread,
Jul 1, 2019, 5:44:15 AM7/1/19
to spyder
Hi
You need to import LabelEncoder()

from sklearn.preprocessing import LabelEncoder

Hope it helps you.

Ratnesh Kumar Kushwaha

unread,
Jul 1, 2019, 5:44:16 AM7/1/19
to spyd...@googlegroups.com
Change (remove ##)
##from sklearn.preprocessing import LabelEncoder
To 
from sklearn.preprocessing import LabelEncoder


On Sun, Jun 30, 2019 at 6:01 PM Review Football <maddyha...@gmail.com> wrote:
I am getting this error in spider pls help me out
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To post to this group, send email to spyd...@googlegroups.com.
Visit this group at https://groups.google.com/group/spyderlib.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/92d4386f-4849-48c2-8ba0-8ceafc5ca13a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Many Thanks & Regards,
Ratnesh Kumar Kushwaha
Software Engineer (Python)
Mob. 7898617389


Reply all
Reply to author
Forward
0 new messages