Last answered:

18 Feb 2023

Posted on:

14 Nov 2021

0

Scatter plot - mismatched labels for axis (Seaborn part)

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)
Instructor
Posted on:

15 Nov 2021

1

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.
Posted on:

18 Feb 2023

0

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. 

Submit an answer