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']