Last answered:

27 Sept 2023

Posted on:

08 Feb 2022

0

I think data['Longitude'] and data['Latitude'] should be swapped in plt.scatter?

I think data['Longitude'] and data['Latitude'] should be swapped in plt.scatter?

4 answers ( 0 marked as helpful)
Instructor
Posted on:

09 Feb 2022

1

Hey Liezel,

Thank you for your comment!

Longitude is a measure of the distance along the parallel (east-west), where the reference meridian is the Prime (Greenwich) meridian. Latitude, on the other hand, is a measure of the distance along the meridian (north-south), where the reference parallel is the Equator. Therefore, Longitude is correctly identified as the x-axis, while Latitude as the y-axis.

Hope this helps! :)

Kind regards,
365 Hristina

Posted on:

09 Feb 2022

0

ahh right sorry! thanks for the reply!

Super learner
This user is a Super Learner. To become a Super Learner, you need to reach Level 8.
Posted on:

27 Sept 2023

0

So, for the scatter plot, 
x = longitude

y = latitude

correct?

but if I heard it correctly (and if the caption is correct,too). I noticed the lecturer said around 6:03:

"In order to resemble the map of the world, the y-axis will be longitude, while x-axis latitude"

Is it something I missed?

Instructor
Posted on:

27 Sept 2023

1

Hey David,


Thanks for pointing this out.


There indeed seems to be a mistake at 6:03. The correct statement is:

In order to resemble the the map of the world, the x-axis will be the longitude, while the y-axis - latitude.

This is how the scatter plot is constructed in the Python code.


Kind regards,

365 Hristina

Submit an answer