Guest User

Untitled

a guest
Nov 18th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. from sklearn import preprocessing
  2. le = preprocessing.LabelEncoder
  3.  
  4. data['Sex'] = le.fit_transform(data['Sex'])
  5. data.head()
Add Comment
Please, Sign In to add comment