Python for Data · Unit 1
Unit 1: Data in Plain Python
Read CSV files and summarise rows with plain Python lists and dictionaries.
Lessons
- What Data Analysis Actually IsFour steps that turn a file of rows into an answer you can defend.
- Rows and Columns with ListsA table is a list of lists, and a column is what you pull out of it.
- Records as DictionariesName the columns, and the code stops depending on their order.
- Reading a CSV FileThe csv module turns a file of text into rows you can work with.
- Summarising NumbersTotals, averages and extremes, and what each one hides.
- Counting and GroupingA dictionary is how you count things, and how you split a table into groups.
-
Take the Unit 1 test
End of unit test
Ten multiple choice questions and one free response problem. You need 70 to finish the unit. Retakes are unlimited and your best score is the one that counts.