Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

seaborn jointplot regression

#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()
 
PREVIOUS NEXT
Tagged: #seaborn #jointplot #regression
ADD COMMENT
Topic
Name
3+8 =