mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-28 21:51:17 -07:00
Add Score D to USA Low (#629)
* added score D * Adding Score D to usa-low * rounding score d * small vscode update * last couple of vscode changes * uncommited bscode changes
This commit is contained in:
parent
1953d2fcd8
commit
327e27e713
3 changed files with 11 additions and 21 deletions
|
@ -26,8 +26,8 @@ class GeoScoreETL(ExtractTransformLoad):
|
|||
self.DATA_PATH / "census" / "geojson" / "us.json"
|
||||
)
|
||||
|
||||
self.TARGET_SCORE_NAME = "Score E (percentile)"
|
||||
self.TARGET_SCORE_RENAME_TO = "E_SCORE"
|
||||
self.TARGET_SCORE_NAME = "Score D (percentile)"
|
||||
self.TARGET_SCORE_RENAME_TO = "D_SCORE"
|
||||
|
||||
self.NUMBER_OF_BUCKETS = 10
|
||||
|
||||
|
@ -103,6 +103,10 @@ class GeoScoreETL(ExtractTransformLoad):
|
|||
crs="EPSG:4326",
|
||||
)
|
||||
|
||||
# round to 2 decimals
|
||||
decimals = pd.Series([2], index=[self.TARGET_SCORE_RENAME_TO])
|
||||
self.geojson_score_usa_low = self.geojson_score_usa_low.round(decimals)
|
||||
|
||||
def _aggregate_to_tracts(
|
||||
self, block_group_df: gpd.GeoDataFrame
|
||||
) -> gpd.GeoDataFrame:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue