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_geofor a Geographical Scatter Plot. You can find help with the map itself here and guidance on map styling here.Alternatively, you can utilize
folium.Mapfor another approach.Remember, your maps don't need to match exactly as the one above!
Last updated
