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 authored Jan 25, 2024
1 parent c3a1f5f commit f0fd127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/members_geocoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def generate_members_info(AIRTABLE_API_KEY, AIRTABLE_APP_KEY, AIRTABLE_TBL_KEY,

if not cached_data.empty:
# If the address is in the cache, use the cached latitude and longitude
if cached_data.iloc[0]['lat'] != np.nan and cached_data.iloc[0]['lon'] != np.nan:
if cached_data.iloc[0]['lat'] != np.nan:
member['lat'] = cached_data.iloc[0]['lat']
member['lon'] = cached_data.iloc[0]['lon'] # Assuming 'long' is the column name
member['Senate_District'] = cached_data.iloc[0]['Senate_District']
Expand Down

0 comments on commit f0fd127

Please sign in to comment.