I know there're some people who have answered this. I'm still trying to get this straight though. I'm still a little bit confused over the one hot encoder. I
I have a dataset Inp1 Inp2 Inp3 Output A,B,C AI,UI,JI Apple,Bat,Dog Animals L,M,N LI,DO,LI Lawn, Moon, Noon Noun X,Y
My Data set contains categorical variables so I am using label encoding and one hot encoder and my code is as follows can I use a loop to ensure that my cod