@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 codevar_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