Untitled
Anonymous
plain_text
12/01/2023 1:02 AM
220 B
26
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