mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-28 15:41:38 -07:00
Issue 1910: Do not impute income for 0 population tracts (#1918)
* should be working, has unnecessary loggers * removing loggers and cleaning up * updating ejscreen tests * adding tests and responding to PR feedback * fixing broken smoke test * delete smoketest docs
This commit is contained in:
parent
9e85375d9b
commit
9fb9874a15
13 changed files with 150 additions and 75 deletions
|
@ -73,8 +73,7 @@ class CDCLifeExpectancy(ExtractTransformLoad):
|
|||
|
||||
all_usa_raw_df = self._download_and_prep_data(
|
||||
file_url=self.USA_FILE_URL,
|
||||
download_file_name=self.get_tmp_path()
|
||||
/ "US_A.CSV",
|
||||
download_file_name=self.get_tmp_path() / "US_A.CSV",
|
||||
)
|
||||
|
||||
# Check which states are missing
|
||||
|
@ -94,15 +93,13 @@ class CDCLifeExpectancy(ExtractTransformLoad):
|
|||
logger.info("Downloading data for Maine")
|
||||
maine_raw_df = self._download_and_prep_data(
|
||||
file_url=self.MAINE_FILE_URL,
|
||||
download_file_name=self.get_tmp_path()
|
||||
/ "maine.csv",
|
||||
download_file_name=self.get_tmp_path() / "maine.csv",
|
||||
)
|
||||
|
||||
logger.info("Downloading data for Wisconsin")
|
||||
wisconsin_raw_df = self._download_and_prep_data(
|
||||
file_url=self.WISCONSIN_FILE_URL,
|
||||
download_file_name=self.get_tmp_path()
|
||||
/ "wisconsin.csv",
|
||||
download_file_name=self.get_tmp_path() / "wisconsin.csv",
|
||||
)
|
||||
|
||||
combined_df = pd.concat(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue