Learn practical skills, build real-world projects, and advance your career
import pandas as pd
import matplotlib.pyplot as plt
df=pd.read_csv("G:\\EnduroLevel2\\homeprices.csv")
df
df=df.interpolate()
df
x=df.area
y=df.price
plt.plot(x,y)
plt.xlabel("area")
plt.ylabel("price")
Text(0, 0.5, 'price')
Notebook Image
x=df.age
y=df.price
plt.plot(x,y)
plt.xlabel("Age")
plt.ylabel("price")
Text(0, 0.5, 'price')
Notebook Image
x=df.bedrooms
y=df.price
plt.plot(x,y)
plt.xlabel("Bedrooms")
plt.ylabel("price")
Text(0, 0.5, 'price')
Notebook Image