Untitled
unknown
plain_text
2 years ago
164 B
7
Indexable
le = LabelEncoder() df_ohe = pd.get_dummies(df,columns=['Gender'],drop_first=True) df_ohe['Geography']=le.fit_transform(df_ohe['Geography']) display(df_ohe.head(3))
Editor is loading...
Leave a Comment