From 58eda27137ce44e908e7d0b23a0e19f08c49f30d Mon Sep 17 00:00:00 2001 From: Erik Brown <57164699+Erik-Brown01@users.noreply.github.com> Date: Thu, 25 Jan 2024 11:13:03 -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 3822fb4..4448caf 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 !(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']