Open nquarder opened 3 years ago
This Challenge cell asks students to plot temperature in Seattle, WA but the data in this .csv are from Montgomery, AL
This .csv file has also changed slightly from last year.
Without changing the code to generate the plot of CO2 vs time in Barrow, AK a parse error is returned (ParserError: Error tokenizing data. C error: Expected 3 fields in line 151, saw 17
).
Last year the first 148 rows needed to be skipped to generate the data frame & plot. Changing skiprows=148
to skiprows=150
solves this.
It looks like there are no (autograded) tests in this notebook. Is that something we want to consider including here?
In the 1st sentence of the 2nd block of text, space should be replaced with comma.
(e.g. Below you will find an example of a comma delimited text file.)
1.10 Missing Data Values & Headers in Text Files
These .csv files have a different header structure than last year, and now there is a column called 'Anomaly.' On top is a screengrab from the notebook from last year, and below that is one from this year.
2020
2021
Without changing any of the code from last year and trying to plot temperature in Miami and Montgmery, a key error (
KeyError: 'Date'
) is returned. Changingskiprows=3
toskiprows=4
solves this problem.