Untitled
Anonymous
Plain Text
12/01/2023 1:02 AM
164 B
29
Indexable
Never
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