Lab 11 guide#
Goal: Students should get practice with:
Grouping
Mapping
Resampling
Multi-line charts
Do the following in the lab notebook all together, with students driving.
~35 minutes: Buses
You’ll need to introduce
pd.to_datetime()
andresample()
, since we didn’t get to them yet.You can keep this fairly brief, as we’ll revisit in Lecture 22.
See the slides from Python for Public Policy for ideas on how to talk about them.
If you have time, make charts. Otherwise, showing in a table is fine.
311 and COVID
~30 minutes: Work through Step 5 together.
You’ll need to introduce resampling with other grouping for Step 3 since we didn’t get to it yet.
~25 minutes: Independent work time for the rest.
While the solutions for the first two sections are available,
Discourage students from looking at them before completing
The solutions the group comes up with don’t need to look like the provided ones