
A cartoon panda is a school crossing guard. He is directing traffic with a hand-held Stop sign and allowing an adorable group of school-aged pythons cross the street. MidJourney 5
Yesterday we learned to describe a dataset. Today we will start asking questions of them.
Day 3 brings in two new patterns that address most of the questions anyone asks of a table. The filter pattern allows you to keep the rows that satisfy a condition. The top-N pattern puts rows in order and takes the front of the list. In addition, booleans, comparison operators and if/elif/else arrive this morning because they are the underlying grammar that a filter depends on.
Class materials
| Session | Session 1 | Session 2 |
|---|---|---|
| day 3 / morning | ๐ Booleans & Conditionals, Asked of Data | ๐ The Filter Pattern |
| day 3 / afternoon | ๐ฅ The Top-N Pattern | ๐ Which One, and How Do You Know? |
End-of-day practice
Later today you will rank a dataset three different ways, and work out what it means when the three rankings disagree.