2.1.11.2.Linear regression with Python
1. 匯入基本的library
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns%matplotlib inline2.讀取資料並了解資料
df = pd.read_csv('USA_Housing.csv')df.head(10)df.info()df.describe()df.columns output: Index(['Avg. Area Income', 'Avg. Area House Age', 'Avg. Area Number of Rooms', 'Avg. Area Number of Bedrooms', 'Area Population', 'Price', 'Address'], dtype='object')
3.繪製圖表分析資料
5. 使用Skikit-learn library
6. 利用Skikit-learn進行預測
Last updated







