Scatter plot - mismatched labels for axis (Seaborn part)
in
The Complete Data Visualization Course with Python, R, Tableau, and Excel
/
Scatter Plot - Python - How to Create a Scatter Plot
It looks like in Seaborn part Price is used for x-axis, and Area is used for y-axis, while naming stays Area for x and Price for y (copied from the previous graph). So either labels or arguments need to be switched around.
2 answers ( 0 marked as helpful)
Hi Mila,
thanks for reaching out! It's possible that the labels are mismatched in one of the graphs, I'll check the code and get back to you.
Best,
365 Eli
Super learner
This user is a Super Learner. To become a Super Learner, you need to reach Level 8.
Shouldn't we put the y-axis first when using the seaborn library?
sns.scatterplot(df_real_estate['Price'],
df_real_estate['Area (ft.)'],
with the above lines of code, I get the Price on the y-axis and the area on the x-axis.