Sektion 1. Kapitel 18
single
Challenge: Hierarchical Indexing
Stryg for at vise menuen
Opgave
Stryg for at begynde at kode
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 18
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat