Overview
Your programs have selected records, calculated totals, and read information from CSV files. Those operations can also answer questions about a dataset. For example, a table of study sessions can tell us which subjects account for the most recorded time and how much the individual session lengths vary.
In this part, you will first use pandas to inspect, select, and summarize observations. You will compare summaries and handle missing measurements before using seaborn to draw charts. The calculations build on the filtering and grouping patterns from earlier parts.
The chart below compares total study time by subject.

Figure 1. Total recorded study time by subject in the supplied sample.
Programming has the largest total. Does that mean its sessions are usually longer?
After working through this part, you should be able to read a small dataset, select and summarize its observations, and create and explain simple charts of the results.
The structure of this part is as follows:
- Tables and DataFrames loads a CSV into a table and inspects its observations.
- Selecting Data selects columns and rows using conditions.
- Calculations and New Columns calculates totals and averages and converts durations to hours.
- Group Comparisons calculates and compares totals, averages, and observation counts for each category.
- Mean, Median, and Percentiles summarizes the centre and spread of recorded durations.
- Missing Measurements distinguishes an absent duration from a recorded zero.
- Bar Charts uses seaborn to display prepared category results as labeled bars.
- Visualizing Distributions uses histograms, individual dots, and boxplots to examine durations.
- Scatterplots and Line Charts examines relationships between measurements and changes across an ordered sequence.
- Putting the Analysis Together connects preparation and drawing, introduces CSV output, and applies the workflow to commute records.
- Recap and Feedback reviews the part and introduces further study.
Recommended Order of Work
Use your IDE and the Python environment workflow from Parts 5 and 7. Set up one data-analysis folder and environment in the next chapter, then keep using them throughout this part. The supplied CSV appears in the next chapter; no additional data collection is needed.
Work through the exercises where they appear. For the local examples, predict a result using a few rows, run the script, and compare the output with your prediction. For a chart, check which observations went into it and what one bar, dot, or line represents.
Use Submit to check the Python programs in the course. The browser’s Run does not load these libraries. To run a program locally, use the environment from Python Environment Setup.