Skip to content

Commit 987ca93

Browse files
committed
Revert "Fix PEP8 formatting"
This reverts commit 561e86d.
1 parent ba908af commit 987ca93

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

examples/choropleth_counties.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,30 @@ def set_id(fips):
3333

3434
# Number of employed with auto scale.
3535
map_1 = folium.Map(location=[48, -102], zoom_start=3)
36-
map_1.choropleth(geo_path=county_geo, data_out='data1.json', data=df,
37-
columns=['GEO_ID', 'Employed_2011'],
38-
key_on='feature.id',
39-
fill_color='YlOrRd', fill_opacity=0.7, line_opacity=0.3,
40-
topojson='objects.us_counties_20m')
36+
map_1.geo_json(geo_path=county_geo, data_out='data1.json', data=df,
37+
columns=['GEO_ID', 'Employed_2011'],
38+
key_on='feature.id',
39+
fill_color='YlOrRd', fill_opacity=0.7, line_opacity=0.3,
40+
topojson='objects.us_counties_20m')
4141
map_1.save(outfile='map_1.html')
4242

4343
# Unemployment with custom defined scale.
4444
map_2 = folium.Map(location=[40, -99], zoom_start=4)
45-
map_2.choropleth(geo_path=county_geo, data_out='data2.json', data=df,
46-
columns=['GEO_ID', 'Unemployment_rate_2011'],
47-
key_on='feature.id',
48-
threshold_scale=[0, 5, 7, 9, 11, 13],
49-
fill_color='YlGnBu', line_opacity=0.3,
50-
legend_name='Unemployment Rate 2011 (%)',
51-
topojson='objects.us_counties_20m')
45+
map_2.geo_json(geo_path=county_geo, data_out='data2.json', data=df,
46+
columns=['GEO_ID', 'Unemployment_rate_2011'],
47+
key_on='feature.id',
48+
threshold_scale=[0, 5, 7, 9, 11, 13],
49+
fill_color='YlGnBu', line_opacity=0.3,
50+
legend_name='Unemployment Rate 2011 (%)',
51+
topojson='objects.us_counties_20m')
5252
map_2.save(outfile='map_2.html')
5353

5454
# Median Household income.
5555
map_3 = folium.Map(location=[40, -99], zoom_start=4)
56-
map_3.choropleth(geo_path=county_geo, data_out='data3.json', data=df,
57-
columns=['GEO_ID', 'Median_Household_Income_2011'],
58-
key_on='feature.id',
59-
fill_color='PuRd', line_opacity=0.3,
60-
legend_name='Median Household Income 2011 ($)',
61-
topojson='objects.us_counties_20m')
56+
map_3.geo_json(geo_path=county_geo, data_out='data3.json', data=df,
57+
columns=['GEO_ID', 'Median_Household_Income_2011'],
58+
key_on='feature.id',
59+
fill_color='PuRd', line_opacity=0.3,
60+
legend_name='Median Household Income 2011 ($)',
61+
topojson='objects.us_counties_20m')
6262
map_3.save(outfile='map_3.html')

0 commit comments

Comments
 (0)