Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Labelencoder error

$
0
0

@tarvinder.r wrote:

Hello All,

I am working on the loan prediction data set and following the instruction on the solution given by Kunal jain
when i run the following code

var_mod = [‘Gender’,‘Married’,‘Dependents’,‘Education’,‘Self_Employed’,‘Property_Area’,‘Loan_Status’]
le = LabelEncoder()
for i in var_mod:
df[i] = le.fit_transform(df[i])

i get this error
’>’ not supported between instances of ‘str’ and ‘float’

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles