Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created December 6, 2020 13:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save amankharwal/cede583cc418fd690af859c8a9fed79d to your computer and use it in GitHub Desktop.
from sklearn.preprocessing import LabelEncoder
var_mod = ['Category']
le = LabelEncoder()
for i in var_mod:
resumeDataSet[i] = le.fit_transform(resumeDataSet[i])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment