Section 1. Chapitre 18
single
Challenge: Hierarchical Indexing
Glissez pour afficher le menu
Tâche
Glissez pour commencer à coder
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
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 18
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion