Skip to content

Instantly share code, notes, and snippets.

@Kamaldeep0077
Last active December 11, 2020 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kamaldeep0077/d8b0f9a39aad3df62d524ab7fab1629b to your computer and use it in GitHub Desktop.
Save Kamaldeep0077/d8b0f9a39aad3df62d524ab7fab1629b to your computer and use it in GitHub Desktop.
Outlet_Type_Dumm = pd.get_dummies(data=data['Outlet_Type'], columns=['Outlet_Type'], drop_first=True)
pd.concat([data['Outlet_Type'], Outlet_Type_Dumm], axis=1).head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment