Skip to content
Data and code for post "In Defense of Fahrenheit"
Jupyter Notebook Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Data and code for post "In Defense of Fahrenheit".

The files are:

  • Gaz_zcta_national.txt: U.S. population data by zip code. This can be downloaded from the Census website.

  • stations.csv: Weather station by zipcode, along with lat long.

  • Inside the zip, 2018 daily high and low temperatures for the weather stations in stations.csv.

  • The script for fetching the data in stations.csv and all_weather_data.csv. It requires an API token with NCDC. For every zip code in Gaz_zcta_national.txt, it first queries NCDC for any weather stations in that zip (stations.csv), and then if there is, queries the data for that station (all_weather_data.csv). Some shell acrobatics for converting json into csv.

  • analysis.ipynb: An ipython notebook that uses Gaz_zcta_national.txt, stations.csv, and all_weather_data.csv to generate the figures in the post.

You can’t perform that action at this time.