@tillutony wrote:
HI Experts ,
learning and working with data science with phython ans stuck with the followingwhen I execute the following code in anaconda/Jupiter its giving me an eeror.
from sklearn.preprocessing import LabelEncoder
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])
df.dtypesError
File "", line 2
from sklearn.preprocessing import LabelEncoder
^
IndentationError: unexpected indentplease help me in troubleshooting
Regards,
Tony
Posts: 2
Participants: 2