Skip to content

Commit

Permalink
Merge pull request #270 from google-research/fixing_us_zip_2023
Browse files Browse the repository at this point in the history
Fixing US zip map 2023
  • Loading branch information
Jelena0921 authored Jan 18, 2023
2 parents 4174c59 + a606a31 commit 5649b4e
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 36 deletions.
1 change: 0 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ US_zips_2021.csv: US_vaccination_search_insights.csv
US_zips_2022.csv: US_vaccination_search_insights.csv
cat $(SRC_DIR)/$(word 1,$^) | awk 'NR==1' > $(SRC_DIR)/$@
cat $(SRC_DIR)/$(word 1,$^) | awk -vFPAT='[^,]*|"[^"]*"' -v OFS=',' '($$8) == "postal_code" && index($$1, "2022")' >> $(SRC_DIR)/$@
rm -f $(SRC_DIR)/$(word 1,$^)

US_zips_2023.csv: US_vaccination_search_insights.csv
cat $(SRC_DIR)/$(word 1,$^) | awk 'NR==1' > $(SRC_DIR)/$@
Expand Down
195 changes: 161 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/zip_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { parse, ParseResult } from "papaparse";
import { fetchRegionalTrendsData, RegionalTrendLine, RegionalTrends } from "./data";
import { mapData, regionalTrends } from "./stores";

const US_ZIP_FILENAMES = ["./data/US_zips_2022.csv"]
const US_ZIP_FILENAMES = ["./data/US_zips_2022.csv", "./data/US_zips_2023.csv"];

function coerceNumber(u: unknown) {
if (u === "") {
Expand Down

0 comments on commit 5649b4e

Please sign in to comment.