Skip to content

Instantly share code, notes, and snippets.

@shubham-singh-ss
Created May 31, 2019 05:56
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 shubham-singh-ss/a8bb261f31d0e5e63bd4e4fc59f5666e to your computer and use it in GitHub Desktop.
Save shubham-singh-ss/a8bb261f31d0e5e63bd4e4fc59f5666e to your computer and use it in GitHub Desktop.
from sklearn.preprocessing import LabelEncoder
dfcategory = df_category.apply(LabelEncoder().fit_transform)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment