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 4fdf85d commit 58eda27
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 !(np.isnan(cached_data.iloc[0]['lat'])):
if not np.isnan(cached_data.iloc[0]['lat']):
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 58eda27

Please sign in to comment.