Advertisement
urevoleg

Task_1_good

Oct 30th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. import pandas as pd
  2.  
  3. df = pd.read_csv('/datasets/train_data.csv')
  4. df.loc[df['last_price'] > 5650000, 'price_class'] = 1
  5. df.loc[df['last_price'] < 5650000, 'price_class'] = 0
  6. print(df.head())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement