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?
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
ahh right sorry! thanks for the reply!
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?
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