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 数据可视化进阶