# A Taste of Data Analysis

Try the most common Python job after class: making sense of data. You'll load a coffee chain's sales into a pandas table, look at what's in it, total the sales by store, and draw a bar chart someone else can read. The chapter ends with where to go next if you'd like to do this for real.

Updated: November 19, 2026

## [pandas, a First Look](https://www.ask-codey.com/courses/python-in-depth/topics/python-taste-pandas)

1. [Your First pandas Table](https://www.ask-codey.com/lessons/python-taste-pandas-first-table) (Apprentice): pandas reads a whole CSV file into a DataFrame, a table you can ask questions, and a few lines then show what's in it, pick out a column, keep the rows that match a condition and total a column for each group.
2. [Your First Chart](https://www.ask-codey.com/lessons/python-taste-pandas-first-chart) (Apprentice): A bar chart shows at a glance what a column of numbers makes you read digit by digit, and matplotlib draws one in a few lines, with a title and axis labels so the reader knows what it shows, saved as an image file with savefig.

## [Exercise: Coffee Sales at a Glance](https://www.ask-codey.com/courses/python-in-depth/topics/exercise-python-coffee-sales-at-a-glance)

1. [Exercise: Coffee Sales at a Glance](https://www.ask-codey.com/lessons/exercise-python-coffee-sales-at-a-glance) (Apprentice): Answer a coffee chain owner's three questions about a month of sales with pandas and matplotlib, by writing four functions that load the data, total each store, find the busiest day and save a labeled bar chart, and let pytest's tests check each one.

Source: https://www.ask-codey.com/courses/python-in-depth/chapters/python-taste-of-data-analysis
