Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: group_by & Aggregations | Combining, Aggregating
Data Wrangling with Polars
Section 2. Chapter 2
single

single

Challenge: group_by & Aggregations

Swipe to show menu

Task

Swipe to start coding

Your task is to implement a function named aggregate_publishers_stats. This function must group the games by their Publishers and compute two metrics for each studio:

  • The mean (average) value of the Price column, aliased as Average Price.

  • The sum (total) value of the Positive column, aliased as Total Positive Reviews.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 2. Chapter 2
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt