-
Notifications
You must be signed in to change notification settings - Fork 2
Select counties under a specific state for data export #721
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
Comments
related issue: cmu-delphi/delphi-epidata#380 |
Hi Kenneth -- we have some plans in motion in the backend that will make it easier to support that kind of query, but they won't be completed for several weeks. In the meantime, if you are able to use the R or Python clients, there is a (terrible, but less terrible than typing in all the county ids by hand) workaround: fetch the data on all counties, then filter for the state prefix once you have all the data. County FIPS codes use the format XXYYY, where XX is the FIPS code for the state. You can see all state FIPS codes here: https://www.nrcs.usda.gov/wps/portal/nrcs/detail/?cid=nrcs143_013696 In R, that would be something like:
the one major downside being that querying all counties for a large timespan will take ages for dense signals like cases/deaths and safegraph... but at least that's your computer taking ages, and not requiring your attention. |
Hi Katie, I have been doing that since August last year. Currently, I write the data frame to a .csv and use that.csv to make things faster e.g. knitting a .rmd to an HTML file without re-fetching all the data. I thought this feature will be good to have if someone goes to the website and just wants to get that .csv. |
@krivard, is there an existing issue that we can link here to track that backend improvement? |
It would be great if I can select all the counties under a specific state without typing each one of the county names for exporting data.
User story
I tried to download all county-level data for California, but I had to manually type each county name...which was not a fond experience for me.
Additional context
The text was updated successfully, but these errors were encountered: