问题
How do I plot multilinear regression graph in python?
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn import linear_model
df = pd.read_csv("C:/Users/SAAD FAKHAR/OneDrive/Desktop/reg.csv")
df
This is the screen shot of csv file:
reg=linear_model.LinearRegression()
reg.fit(df[['area','bedroom','age']],df.price)
来源:https://stackoverflow.com/questions/64050363/how-to-plot-multilinear-regression-graph-in-python