text_html_output_1.png
from sklearn import linear_model

import matplotlib.pyplot as plt

import pandas

import seaborn as sns

df = pandas.read_csv('../input/mobile-price-classification/train.csv')

corr = df.corr()

x = df[['clock_speed', 'fc', 'px_height', 'px_width', 'three_g', 'four_g', 'ram']]
y = df['price_range']
regr = linear_model.LinearRegression()
regr.fit(x.values, y)
print('intercept :', regr.intercept_)
print('coefficient :', regr.coef_)
print(x)