Challenge: Grouped Summary Table
Swipe to start coding
Given a DataFrame with columns 'experiment', 'group', and 'score', create a function that returns a new DataFrame showing the mean and standard deviation of 'score' for each combination of 'experiment' and 'group'. The resulting DataFrame should have a multi-level index with 'experiment' and 'group'.
- Group the input DataFrame by the
'experiment'and'group'columns. - Calculate the mean and standard deviation of the
'score'column for each group. - Return a new DataFrame with the results, using a multi-level index of
'experiment'and'group'.
Solução
Obrigado pelo seu feedback!
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 5
Challenge: Grouped Summary Table
Deslize para mostrar o menu
Swipe to start coding
Given a DataFrame with columns 'experiment', 'group', and 'score', create a function that returns a new DataFrame showing the mean and standard deviation of 'score' for each combination of 'experiment' and 'group'. The resulting DataFrame should have a multi-level index with 'experiment' and 'group'.
- Group the input DataFrame by the
'experiment'and'group'columns. - Calculate the mean and standard deviation of the
'score'column for each group. - Return a new DataFrame with the results, using a multi-level index of
'experiment'and'group'.
Solução
Obrigado pelo seu feedback!
single