Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- X = df.drop(['class'], axis = 1)
- Y = df['class']
- X = pd.get_dummies(X, prefix_sep='_')
- Y = LabelEncoder().fit_transform(Y)
- X = StandardScaler().fit_transform(X)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement