Join Jonathan Fernandes for an in-depth discussion in this video Groupby, part of pandas Essential Training.
- [Instructor] Groupby is one…of the most important functionalities available in Pandas.…Groupby does three things.…It splits a DataFrame into groups…based on some criteria,…it applies a function to each group independently…and it combines the results into a DataFrame.…Now, many people when they first learn…how to use the Groupby function,…don't know what to do with the Groupby object.…Creating the Groupby object only verifies…that you've passed a valid mapping.…The Groupby object isn't a DataFrame…but rather a group of DataFrames…in a dict-like structure.…
On the next slide, we have a useful visualization…that helps us show what the Groupby function does.…So, Groupby splits the DataFrame into groups.…Each of these groups remember is a DataFrame,…it applies a function for each group…and then finally it combines…the results into a DataFrame.…Let's head over to the Jupyter Notebook…to look at a couple of examples.…So, let's import Pandas as PD.…We read the Olympic CSV file into our DataFrame called 00…and now let's Groupby by the edition,…
- Working with plots
- Boolean indexing
- String handling
- Grouping data
- Creating your own colormaps
Skill Level Intermediate
1. Technical Setup
2. Series and DataFrames
3. Data Input and Validation
4. Basic Analysis
5. Basic Plotting
9. Data Visualizations
Next steps1m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.