Seaborn 資料視覺化中級
Chris Moffitt
Instructor
sns.regplot(data=df, x='temp',
y='total_rentals', marker='+')

residplot 提供支援 sns.residplot(data=df, x='temp', y='total_rentals')

order 參數支援多項式迴歸 sns.regplot(data=df, x='temp',
y='total_rentals', order=2)

sns.residplot(data=df, x='temp',
y='total_rentals', order=2)

sns.regplot(data=df, x='mnth', y='total_rentals',
x_jitter=.1, order=2)

x_estimator 有助於凸顯趨勢 sns.regplot(data=df, x='mnth', y='total_rentals',
x_estimator=np.mean, order=2)

x_bins 將資料切成數個離散箱sns.regplot(data=df,x='temp',y='total_rentals',
x_bins=4)

Seaborn 資料視覺化中級