Mapping It Out

Remember that we wanted to keep longitude and latitude in our geographical_location data set, and renamed the variables to be short and less messy? This will be useful now since we are going to plot all ports onto a map now!

We will build the map using the plotly package. While you could have also plotted all previous graphs with plotly too, it is more cumbersome to do so, but it does an amazing job with maps.

One option for plotting geographical data is using Plotly's px.scatter_geo for a Geographical Scatter Plot. You can find help with the map itself herearrow-up-right and guidance on map styling herearrow-up-right.

Alternatively, you can utilize folium.Map for another approach.

Remember, your maps don't need to match exactly as the one above!

Last updated