Skip to content
Analyzing and Visualizing Data

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.

Bar chart showing Programming at 350 minutes, Mathematics at 315, Writing at 150, and Languages at 100.

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:

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.