Python for Introductory Statistics: Lab WorkbookXYZ Homework Edition

⇩ Download ▾

14.3 Descriptive Statistics (multiple columns)

Watch demo video

Lab 14.3.1

Write a Python code to read the dataset with the url below and find the mean, median, standard deviation, minimum, maximum, 25th and 75th percentiles (descriptive statistics) of all columns in the dataset.

data.csv

view answer

Lab 14.3.2

Write a Python code to read the dataset with url below and find the mean, std, and size of the actual_weight grouped by country_of_origin.

'data.csv'

view answer

Lab 14.3.3

Write a Python code to find the mean, std, size of the actual_weight grouped by country_of_origin and route.

data.csv

view answer

Lab 14.3.4

Write a Python code to display a boxplot of the actual_weigth grouped by country_of_origin.

data.csv

view answer

Adapted from Python for Introductory Statistics: Student's Lab Workbook, by Simon Aman (Truman College, City Colleges of Chicago), licensed under CC BY 4.0. Changes were made: reformatted as an accessible XYZ web edition with live in-browser code cells. License: CC-BY-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.