Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- df = pd.read_csv('/datasets/train_data.csv')
- df.loc[df['last_price'] > 5650000, 'price_class'] = 1
- df.loc[df['last_price'] < 5650000, 'price_class'] = 0
- print(df.head())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement