Skip to content

Instantly share code, notes, and snippets.

View nduprincekc's full-sized avatar
💝
Programming is my hobby

kc emma nduprincekc

💝
Programming is my hobby
View GitHub Profile
@nduprincekc
nduprincekc / predict_iphone_iphone.py
Created March 9, 2021 09:19
How to predict iphone price
import pandas
from sklearn.linear_model import LinearRegression
user = input('enter the price of iphone you want to know the predicted price: ')
data = pandas.read_csv('iphone_price.csv')
model = LinearRegression()
ode = LinearRegression()
ode.fit(data[['version']], data[['price']])