Skip to main content
πŸ”’ Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.Start 7-day trial β†’
⚑
← Coursesβ€ΊData Science AppliedModule 1 Β· Python for Data Β· Recapβ€Ίpandas MultiIndex (hierarchical indexing)quiz27 / 104
+100 XP
Task
πŸ“ **Question:** After `df.groupby(['region', 'product'])['amount'].sum()`, how do you turn the inner 'product' level into columns? πŸ“‹ Pick the right answer. πŸ’‘ **Hint:** Re-read the theory above if unsure.
🎯 Quiz

Question

πŸ“ **Question:** After `df.groupby(['region', 'product'])['amount'].sum()`, how do you turn the inner 'product' level into columns? πŸ“‹ Pick the right answer. πŸ’‘ **Hint:** Re-read the theory above if unsure.