Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the purpose of the groupby method?
Think about how you'd categorize your data.
List two common aggregation functions.
One function represents an average, the other a total.
What function do we use to split data into groups in Pandas?
It's a commonly used function in data analysis.
True or False: Aggregation functions can only return a single value.
Consider how functions like mean and sum work together.
You have a dataset with sales data for different products across various stores. Write a Pandas function to find the average sales per product.
Think about how products need to be grouped to calculate averages.
A farmer wants to analyze his crop yields across different farms over several years. Construct a script to group the data by year and find the total yield per year.
Focus on how years can help to summarize yields.
6 more questions in this section. Enroll free to practise them all.
Enroll free