Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- from sklearn.metrics import mean_squared_error
- df = pd.read_csv('/datasets/train_data.csv')
- # < создайте переменные features и target >
- fearures = df.drop(['last_price'], axis=1)
- target = df['last_price'] / 1000000
- print('Средняя цена:', target.mean()) # < найдите и напечатайте среднее >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement