Grouping Data __ Part 1
If you are familiar with SQL, you will know how to write in SQL with a "group by" clause. pandas also provide such a feature.
We'll cover the following
groupby
is not a single operation. Actually, it could be viewed as the following steps:
- Splitting data into groups based on some criteria.
- Applying an aggregation function on each group.
- Combining the results.
Get hands-on with 1200+ tech skills courses.