Skip to content

Commit

Permalink
Update members_geocoder.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik-Brown01 committed Jan 25, 2024
1 parent c6a717c commit 33c0153
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/members_geocoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 33c0153

Please sign in to comment.