Skip to content

Commit

Permalink
Update legislative_support_generator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik-Brown01 committed Dec 26, 2023
1 parent d843420 commit 11866f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/legislative_support_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def generate_legislative_support_geojson(API_KEY, APP_KEY, TBL_KEY):

# Rename columns for clarity
gdf_senate = gdf_senate.rename(columns = {'Which HCMC legislation do they support?':'HCMC support'})
gdf_assembly = gdf_assembly.rename(columns = {'Which HCMC legislation do they support?':'HCMC support'})
gdf_assembly = gdf_assembly.rename(columns = {'Which HCMC legislation do they support?':'HCMC support', 'Name_x':"NAME"})

gdf_assembly['HCMC support'] = gdf_assembly['HCMC support'].apply(lambda x: re.sub(r'DEFEND RTC', 'Defend RTC', str(x)))
gdf_senate['HCMC support'] = gdf_senate['HCMC support'].apply(lambda x: re.sub(r'DEFEND RTC', 'Defend RTC', str(x)))
Expand Down

0 comments on commit 11866f1

Please sign in to comment.