From 276ddc05e3a2c343a59fbc7a7a855b67c0425b22 Mon Sep 17 00:00:00 2001 From: RetroAkabane Date: Tue, 28 Nov 2023 16:15:34 -0500 Subject: [PATCH] Update legislative_support_generator.py --- scripts/legislative_support_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/legislative_support_generator.py b/scripts/legislative_support_generator.py index f97e818..68f6b8e 100644 --- a/scripts/legislative_support_generator.py +++ b/scripts/legislative_support_generator.py @@ -17,8 +17,8 @@ rows.append(row['fields']) df = pd.DataFrame(rows) # Load GeoJSONs -gdf_assembly = gpd.read_file("public/NYS_Assembly_Districts.geojson").to_csr("EPSG:4326") -gdf_senate = gpd.read_file("public/NYS_Senate_Districts.geojson").rename(columns={'DISTRICT':'District'}).to_csr("EPSG:4326") +gdf_assembly = gpd.read_file("public/NYS_Assembly_Districts.geojson").to_crs("EPSG:4326") +gdf_senate = gpd.read_file("public/NYS_Senate_Districts.geojson").rename(columns={'DISTRICT':'District'}).to_crs("EPSG:4326") # Split your dataframe by house df_assembly = df[df['House'] == 'Assembly']