Skip to content
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

add 118th Congressional District information to ECHO_EXPORTER in SBU database #74

Open
ericnost opened this issue Feb 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ericnost
Copy link
Member

A problem with ECHO_EXPORTER's CD113 field has been that there are many facilities with invalid CDs.

This script only produces real CDs for 118, an improvement on ECHO's data:

https://colab.research.google.com/drive/1y73SNnrd--Qp5m5SAPsLlIwyBQMCapkp

To make it part of the SBU database workflow, the script would have to be adjusted to load the scraped ECHO_EXPORTER CSV. It would probably be called in between the scrape and the import here: https://github.com/sunggheel/edgipgdb/blob/main/edgi_postgis/echo_scripts/10_scrapeECHOEPA

Additionally, we'd have to adjust the schema (one-time manual change?) and the views->materialized script here https://github.com/sunggheel/edgipgdb/blob/6afa24d4b5ec8207619eb5db1936892e5179790b/edgi_postgis/echo_scripts/viewsToMaterialized.py#L38 to include the new field.

@ericnost
Copy link
Member Author

We've at least devised a way to make this information available for the report card process.

@ericnost ericnost added the enhancement New feature or request label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant