great effort but time-consuming but you can simplify this by using transform as well after import Label encoder you can use this command. either you have two categories or more in any feature. it will work efficiently data[['sex']] = LabelEncoder().fit_transform(data['sex']) data[['smoker']] = LabelEncoder().fit_transform(data['smoker']) data[['day']] = LabelEncoder().fit_transform(data['day']) data[['time']] = LabelEncoder().fit_transform(data['time']) data.head()
brooooo...YOU R AWESOME ... you just sort out my one of the biggest confusion it was showing very long error that only integer value can be inserted in the array ....YOUR tutorial just sav the day ...Keep up the good work bro 😍😍
Hi, since you had only two values ( male and female), u easily added to a new data frame, what if I am having 10 values and 10 new dummy columns that gets created and need to every time give the to_list command to concatenate all the 10 columns.
bro your method is working corrrectly but when I am using standard sceler function and doing feature scaling there is an error that is popping out that cannot covert string into float i don't know how to do that will you tell please
great effort but time-consuming
but you can simplify this by using transform as well
after import Label encoder you can use this command. either you have two categories or more in any feature. it will work efficiently
data[['sex']] = LabelEncoder().fit_transform(data['sex'])
data[['smoker']] = LabelEncoder().fit_transform(data['smoker'])
data[['day']] = LabelEncoder().fit_transform(data['day'])
data[['time']] = LabelEncoder().fit_transform(data['time'])
data.head()
I tried it out and it is very efficient.Thank you!!
what if we have 20 cat columns then how? pls tell
dosent work
brooooo...YOU R AWESOME ... you just sort out my one of the biggest confusion it was showing very long error that only integer value can be inserted in the array ....YOUR tutorial just sav the day ...Keep up the good work bro 😍😍
where le came from in the line le.fit_transform? I think it should be l3 instead of le...
same here i m still wondering how the code ran
@@Moonwalkerrabhi he probably had le properly defined in a previous kernel.
At 4:44, he imported a package called LabelEncoder from sklearn
really, I wondered how it could be executed
Hi, since you had only two values ( male and female), u easily added to a new data frame, what if I am having 10 values and 10 new dummy columns that gets created and need to every time give the to_list command to concatenate all the 10 columns.
Thank you so much for a great tutorial!!
Good work but just slow down please... No need to rush!!
How to pickle the label encoders used in training for use in prediction ?
What were you doing you look mixed up
Super tutorial, does this work the same way if label data have multiple classes eg countries
Change your way to do man everything you did buttermilk .. unfortunately i am here
bro your method is working corrrectly but when I am using standard sceler function and doing feature scaling there is an error that is popping out that cannot covert string into float
i don't know how to do that will you tell please
what to do if found string and float in one column
how to convert more categorical data and can we start from numeriacal 10 as you started from 0,1,2,etc
confused while learning
Sir, Can we use non categorical data in training/testing our model?
And can we convert non categorical data into numerical data?
yes
Your video is very nice, but you are abit too fast brother, please calm down abit. Otherwise your very much appreciated
How can i check what value has been assigned to what data if i have a lot of categories using label encoder?
Do fist df[somecol].nunique(). This will tell you how many categories it has
very high speed n in rush
hey, i understand everything please goa little slow in other videos.
you lost me
Soumil upload the csv file of data also to work on that data file
Ashok Patel sure allow me some time
Ashok Patel for this example there is no csv I am using built in dataset from Seaborn
confuse man
very good , soumilshah1995
You tried so hard to Concate two Data variables. LOL
Keep it, Simple buddy. Don't complicate things.
Bad demo
How to convert big number to small number?
Example big number 76527556375 .
How to convert into small number?