Answering a Question by Hand, and Where It Breaks

A list of order dictionaries, a loop and a dictionary of running totals answer a coffee chain's question about sales by store in plain Python, and three more questions and one blank price show where hand-written code starts to strain, which is the problem a table library such as pandas solves.

By

Updated

Cheat sheet: Answering a Question by Hand, and Where It Breaks
Category
Data Analysis
Level
Apprentice
Tags
Dictionary (python), pandas, python, Running Total, Type Conversion (python), ValueError