Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Grouped Summary Table | Data Manipulation for Research
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Researchers

bookChallenge: Grouped Summary Table

Compito

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'.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 5
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

close

bookChallenge: Grouped Summary Table

Scorri per mostrare il menu

Compito

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'.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 5
single

single

some-alt