-
Notifications
You must be signed in to change notification settings - Fork 16
First pass of the CDC Vaccination Indicator #1238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Missing HI and TX data by county. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent start!
Co-authored-by: Katie Mazaitis <[email protected]>
Co-authored-by: Katie Mazaitis <[email protected]>
Co-authored-by: Katie Mazaitis <[email protected]>
Co-authored-by: Katie Mazaitis <[email protected]>
Co-authored-by: Katie Mazaitis <[email protected]>
Co-authored-by: Katie Mazaitis <[email protected]>
Co-authored-by: Katie Mazaitis <[email protected]>
Co-authored-by: Katie Mazaitis <[email protected]>
…i/covidcast-indicators into indicator_cdc_vaccines
The changes requested have been made. We should talk about the two open issues still - the unknown states/counties and the megacounty thread. |
Co-authored-by: Katie Mazaitis <[email protected]>
# Obtain new_counts | ||
df.sort_values(["fips", "timestamp"], inplace=True) | ||
for to, from_d in DIFFERENCE_MAPPING.items(): | ||
df[to] = df[from_d].diff() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, you might like this version of taking diffs, grouped by geos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the .isna()
in that code should probably be replaced with .loc[min_time_value, :]
or something, but the gist is there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we can keep this method for now, but then later I'll look to fix the method and use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, that's alright. A possible refactor for later.
Co-authored-by: Katie Mazaitis <[email protected]>
Co-authored-by: Katie Mazaitis <[email protected]>
Co-authored-by: Katie Mazaitis <[email protected]>
Co-authored-by: Katie Mazaitis <[email protected]>
@krivard @dshemetov , do we need to do anything else for this indicator? |
@Ananya-Joshi just the Nancodes annotation in the thread above and it should be good to go 👍 |
As far as I can see on my local, they're changed! Is this not the case for what you can see? |
Oh, now we're missing the actual "se" and "sample_size" columns. I will make a commit with what I mean. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This looks like rebase leavings: Indeed, the gitref for "Remove test for old export func" is supposed to be 5fa6314 and not ca09586. @Ananya-Joshi and @dshemetov can you clarify what was done here? I want to make sure when we merge it we won't wind up with duplicate copies of all of those dual-author commits. |
Hi Katie, I did do a rebase so that the new create_export_csv function would be used. Is there something I can fix or undo? |
was it just
or something more complicated? |
It started out that way, but I also needed to manually fix some parts that were conflicting. Should I roll back? |
None of the files added in this branch existed before, so the fact that there were conflicts is highly suspicious. I'm also looking at the merge commit you have there -- b9c6e8a -- mixing merges and rebases is probably not helping. There are multiple options for repairing the commit history, largely because there are multiple acceptable options for where we want to end up when we're done:
This PR includes 136 commits, but only ~32 of them were for cdc_vaccines:
Ways to get from here to one of the options above include:
Whatever you choose, you'll then need to Cherrypick method (B2) details:
Rebase method (B3) details:
|
Thank you Katie for this super detailed comment- I learned a lot and it seems like 2b will be successful (will push shortly or will create a new PR). |
Description
First pass on the CDC Indicator with tests