Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Make WIC Participation Data Available to Frontend #44

Merged
merged 16 commits into from
Apr 29, 2021

Conversation

brickman1444
Copy link
Collaborator

Adds a new output file df_merged_with_wic_and_insecurity.json that includes census data, food insecurity data and wic participation data all merged together.

-Pass the participation data back in so it can be merged in with the census data
Changed the WIC participation dataframes to actually have the fips column as the index. This changed the json format of a lot of the fixtures.

Add new test to test merging. This test currently fails because the code isn't implemented yet
I'm silencing a mypy error on appending lists of different types:
error: Unsupported operand types for + ("List[str]" and "List[int]")
It looks like the fixes to correct the overzealous type error wouldn't be worth implementing: python/mypy#720
src/wic.py Outdated Show resolved Hide resolved
michaelpkuhn and others added 3 commits April 28, 2021 17:02
* added test_run

* set fail fast to false, allows determination of os/version specific errors

* replaced .loc[] with reindex(), due to key error
ValueError: invalid literal for int() with base 10: '1,044'
@brickman1444 brickman1444 merged commit df6a25b into main Apr 29, 2021
@brickman1444 brickman1444 deleted the make-wic-data-available-to-frontend branch April 29, 2021 03:20
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.

2 participants