Section 1. Chapter 18
single
Challenge: Hierarchical Indexing
Swipe to show menu
Task
Swipe to start coding
Create a data frame with a multi-level index and perform a group operation.
- Create a data frame containing at least two columns that can serve as hierarchical index levels and one numeric column.
- Aggregate the numeric column by both index levels using a group operation.
- Return the resulting grouped data frame.
Solution
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 18
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat