Vessel Count Statistics by Continent

When working with data, it's often helpful to zoom out and look at patterns from a higher level. Instead of looking at every single port individually, we can group them into broader regions β€” like continents β€” to get a big-picture view.

By grouping ports by their continent, we can summarize the data in a way that's easier to understand and compare. It turns hundreds of individual numbers into a handful of meaningful insights.

πŸ”§ Your next tasks:

To conquer this task, try using:

  • groupby() to group ports based on a specific variable (like continent)

  • .agg() to calculate multiple statistics β€” such as sum, mean, or median β€” for each group

Think of groupby as a way to split your data into mini-tables, one for each continent. Then agg() helps you summarize each one with the statistics you care about.

πŸ“Œ Try chaining them together for a clean, one-liner summary!

Last updated