Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9502440

Browse files
committed
pep-8: l -> L variable name
1 parent 065e59c commit 9502440

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

plotly/figure_factory/_county_choropleth.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ def _create_us_counties_df(st_to_state_name_dict, state_to_st_dict):
2626
abs_plotly_dir_path = abs_dir_path[:abs_dir_path.find('/figure_factory')]
2727
abs_data_dir_path = abs_plotly_dir_path + '/package_data/data/'
2828

29-
print abs_data_dir_path
30-
3129
shape_pre2010 = 'gz_2010_us_050_00_500k/gz_2010_us_050_00_500k.shp'
3230
shape_pre2010 = abs_data_dir_path + shape_pre2010
3331
df_shape_pre2010 = gp.read_file(shape_pre2010)
@@ -645,14 +643,14 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None,
645643
list(np.linspace(0, 1, viri_len))
646644
)[1:-1]
647645

648-
for l in np.linspace(0, 1, len(LEVELS)):
646+
for L in np.linspace(0, 1, len(LEVELS)):
649647
for idx, inter in enumerate(viri_intervals):
650-
if l == 0:
648+
if L == 0:
651649
break
652-
elif inter[0] < l <= inter[1]:
650+
elif inter[0] < L <= inter[1]:
653651
break
654652

655-
intermed = ((l - viri_intervals[idx][0]) /
653+
intermed = ((L - viri_intervals[idx][0]) /
656654
(viri_intervals[idx][1] - viri_intervals[idx][0]))
657655

658656
float_color = colors.find_intermediate_color(

0 commit comments

Comments
 (0)