📜  使用 python seaborn 进行回归 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:55.741000             🧑  作者: Mango

代码示例1
#The jointplot allows us to create  a scatter plot. The x is the column of the
#df that we would like to have on the x-axis.
#The y is the column of the dataframe that we would like on the y-axis.
#The data is the dataframe we are deriving the values from.
#The kind is assigned as reg since we want to create a regression
sns.jointplot(x='QQQ', y='SPY', data=df, kind='reg')
plt.show()