Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Implemented ETL for covidtracking.com and rt.live data sources to a c… #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wesmwoo
Copy link
Contributor

@wesmwoo wesmwoo commented Jul 21, 2020

…opy of main homepage google sheet.

@wesmwoo wesmwoo requested a review from lucasmbrown July 21, 2020 17:50
Copy link
Contributor

@lucasmbrown lucasmbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally this looks awesome, really great work @wesmwoo ! Way to dive in and get this working quite quickly.

Honestly all of the code looks pretty solid to me -- I left some nits about naming and running the hooks, but nothing major.

My main concern at this point is that the updated sheet (https://docs.google.com/spreadsheets/d/1CKcRpPqYzWo-B_xEhrSyrFDplMxhf9PaGTlpgh91jeQ/edit#gid=237779988) no longer has its formulas working -- do you know why those are broken? If we can get them to work, this could be a big step forward in automating Ryan's daily work!

@@ -944,6 +944,20 @@ def transform_covidtracking_data(covidtracking_df):
return covidtracking_df


def transform_covidtracking_data_to_states_historical(covidtracking_df):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I'm glad these are methods now.

@@ -435,7 +435,7 @@
]


def transform_covidtracking_data(covidtracking_df):
def transform_covidtracking_data_to_cdc(covidtracking_df):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I'm glad this is renamed! Nit, maybe rename it as ...to_cdc_criteria, since that's a bit more accurate about what's happening.

@@ -6,7 +6,8 @@

from covid.constants import PATH_TO_SERVICE_ACCOUNT_KEY
from covid.extract import extract_cdc_ili_data
from covid.extract import extract_covidtracking_historical_data
from covid.extract import extract_covidtracking_historical_data, extract_covidtracking_current_data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind install pre-commit and running it according to the instructions i just added? https://github.com/usdigitalresponse/covid-exit-strategy/pull/42/files. Not your fault, this wasn't documented yet! But it'll move these to single-line imports.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-implement tables for the main covidexitstrategy.org page in Python
2 participants