From 33c015325f1fdf01eb34345608f1b64d772dba3f Mon Sep 17 00:00:00 2001 From: RetroAkabane Date: Thu, 25 Jan 2024 10:46:32 -0500 Subject: [PATCH] Update members_geocoder.py --- scripts/members_geocoder.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/members_geocoder.py b/scripts/members_geocoder.py index 48cfe87..ceee409 100644 --- a/scripts/members_geocoder.py +++ b/scripts/members_geocoder.py @@ -269,14 +269,13 @@ def generate_members_info(AIRTABLE_API_KEY, AIRTABLE_APP_KEY, AIRTABLE_TBL_KEY, # Export to GeoJSON gdf.to_file(path / 'rtc_members.geo.json', driver='GeoJSON') - address_cache.dropna(axis=1, how='all').to_csv(path / "address_cache.csv") + address_cache[['address_code','lat', 'lon', 'Senate_District', 'Assembly_District', 'County', 'Zip_Code', 'Website', 'Name', 'Legislation', 'Phone', 'Address', 'Membership Status']].dropna(axis=1, how='all').to_csv(path / "address_cache.csv") nongeocoded_members.to_csv(path / "nongeocoded_members.csv") with open(path / "airtable.pkl", 'wb') as f: pickle.dump(airtable_members, f) - if __name__ == '__main__': MEMBERS_INFO = os.environ['MEMBERS_INFO'] GEOCODER_KEY = os.environ['GEOCODER_KEY']