From 242f6ec327d4e27857176ab0f98d07c32cf0edac Mon Sep 17 00:00:00 2001 From: Emma Nechamkin Date: Thu, 11 Aug 2022 10:01:38 -0400 Subject: [PATCH] updated to fix linting errors --- data/data-pipeline/data_pipeline/etl/score/constants.py | 6 +++--- data/data-pipeline/data_pipeline/etl/score/etl_score.py | 1 - data/data-pipeline/data_pipeline/etl/score/etl_score_geo.py | 3 +-- .../data_pipeline/etl/sources/census_acs/etl_imputations.py | 1 - 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/data/data-pipeline/data_pipeline/etl/score/constants.py b/data/data-pipeline/data_pipeline/etl/score/constants.py index 139f672b5..17e5b4355 100644 --- a/data/data-pipeline/data_pipeline/etl/score/constants.py +++ b/data/data-pipeline/data_pipeline/etl/score/constants.py @@ -294,10 +294,10 @@ # These are the booleans for socioeconomic indicators ## this measures low income boolean field_names.FPL_200_SERIES: "FPL200S", - ## Low high school and low higher ed for t&wd + ## Low high school for t&wd field_names.WORKFORCE_SOCIO_INDICATORS_EXCEEDED: "M_WKFC_EBSI", - ## FPL 200 and low higher ed for all others - field_names.FPL_200_SERIES: "M_EBSI", + ## FPL 200 and low higher ed for all others should no longer be M_EBSI, but rather + ## FPL_200 (there is no higher ed in narwhal) } # columns to round floats to 2 decimals diff --git a/data/data-pipeline/data_pipeline/etl/score/etl_score.py b/data/data-pipeline/data_pipeline/etl/score/etl_score.py index e85aff16b..0af482b97 100644 --- a/data/data-pipeline/data_pipeline/etl/score/etl_score.py +++ b/data/data-pipeline/data_pipeline/etl/score/etl_score.py @@ -1,6 +1,5 @@ import functools from collections import namedtuple -from attr import field import numpy as np import pandas as pd diff --git a/data/data-pipeline/data_pipeline/etl/score/etl_score_geo.py b/data/data-pipeline/data_pipeline/etl/score/etl_score_geo.py index d219c306a..a4b5685ef 100644 --- a/data/data-pipeline/data_pipeline/etl/score/etl_score_geo.py +++ b/data/data-pipeline/data_pipeline/etl/score/etl_score_geo.py @@ -289,7 +289,7 @@ def create_esri_codebook(codebook): shapefile_column_field = "shapefile_column" internal_column_name_field = "column_name" column_description_field = "column_description" - + logger.info("Creating a codebook that uses the csv names") codebook = ( pd.Series(codebook) @@ -299,7 +299,6 @@ def create_esri_codebook(codebook): 0: internal_column_name_field, "index": shapefile_column_field, } - ) ) diff --git a/data/data-pipeline/data_pipeline/etl/sources/census_acs/etl_imputations.py b/data/data-pipeline/data_pipeline/etl/sources/census_acs/etl_imputations.py index c0c6f6ec1..35ccb6c12 100644 --- a/data/data-pipeline/data_pipeline/etl/sources/census_acs/etl_imputations.py +++ b/data/data-pipeline/data_pipeline/etl/sources/census_acs/etl_imputations.py @@ -1,7 +1,6 @@ from typing import List, NamedTuple import pandas as pd import geopandas as gpd -import numpy as np from data_pipeline.utils import get_module_logger