Grouping Data

This lesson introduces us to grouping data and focuses on how grouping can be done with Pandas in Python.

We'll cover the following...

Grouping

During analysis, we may want to gather information about specific types of items in a column. For instance, we may want to separate the data for household blocks based on their proximity to the ocean in our California Housing Dataset and calculate the total population of household blocks in each type of area.

We simply want to group data for each type of area and then aggregate population. This can be easily done with Pandas using the function groupby. Below is an illustration of how grouping is done.

...
Access this course and 1400+ top-rated courses and projects.