From f0fd1272b785df68acab8014462c575914fefbfa Mon Sep 17 00:00:00 2001 From: Erik Brown <57164699+Erik-Brown01@users.noreply.github.com> Date: Thu, 25 Jan 2024 10:54:09 -0500 Subject: [PATCH] Update members_geocoder.py --- scripts/members_geocoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/members_geocoder.py b/scripts/members_geocoder.py index 0d85a15..bc68da9 100644 --- a/scripts/members_geocoder.py +++ b/scripts/members_geocoder.py @@ -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']