Python · Statistical analysis
Compare two group means
Work with the mini survey and compare your output with the expected result.
Mini exercises · Practice with data ↓
Try it in three steps
- Extract the mini exercise package below. Complete the cleaning task or use anket-temiz.csv. Requires pandas.
- Work in the data folder and load the data: import pandas as pd; df = pd.read_csv("anket-temiz.csv")
- Run: print(df.groupby("group")["minutes"].agg(["count", "mean", "std"]))
How to read the output
A: n=9, mean 56.67; B: n=9, mean 66.67. B−A=10.00 minutes.
Test your understanding.
True or false?
These synthetic data establish conclusions about a real population.
Related concepts
Official source
Python · Documentation ↗Documentation checked: . Steps are based on official documentation and have not been tested in the application. Menu names may differ by version and interface language.