用简单的线性回归方程绘制多个散点图?

时间:2018-07-26 21:02:02

标签: python pandas matplotlib seaborn

我有一个多列的pandas df。我想散布多个普通最小二乘回归图,并在图中显示方程式。我还想根据另一列或“色相”进行更改,以便将某些列值或色相分开绘制。

sns.relplot(y='Latitude', x='Longitude', hue='cluster', palette="Paired", s=9, data=df)

This is what I currently have: note that it does not have regression equation.

是否有一种简化的方法来执行此操作,从而不必编写用于遍历每一列和色相的函数?

0 个答案:

没有答案