Login
📚 Python for Introductory Statistics: Lab Workbook
Chapters ▾

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.