Python for Data · Lesson 2 of 6 · 14 min

Rows, dictionaries and loops

Represent rows of data as dictionaries, loop over them, filter them and count them.

Most data arriving from files and APIs looks like a list of rows, and each row is a dictionary: a set of key: value pairs, like a row with named columns.

Looping over rows

← Previous: Python basics for data work