From c3a1f5f1216a3cb65004d9bd3705826967993775 Mon Sep 17 00:00:00 2001 From: Erik Brown <57164699+Erik-Brown01@users.noreply.github.com> Date: Thu, 25 Jan 2024 10:52:02 -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 ceee409..0d85a15 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'] is not None and cached_data.iloc[0]['lon'] is not None: + if cached_data.iloc[0]['lat'] != np.nan and cached_data.iloc[0]['lon'] != 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']