Skip to content

Commit c2c9c7d

Browse files
committed
update
1 parent 315ccd4 commit c2c9c7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/python/plotly/plotly/figure_factory/_county_choropleth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def _calculations(
382382
+ "<br>Value: "
383383
+ str(values[index])
384384
)
385-
t_c = [text for poly in fips_polygon_map[f]]
385+
t_c = [text for poly in fips_polygon_map[f].geoms]
386386
x_centroids = x_c + x_centroids
387387
y_centroids = y_c + y_centroids
388388
centroid_text = t_c + centroid_text
@@ -853,11 +853,11 @@ def create_choropleth(
853853
elif df_state["geometry"][index].type == "MultiPolygon":
854854
x = [
855855
poly.simplify(simplify_state).exterior.xy[0].tolist()
856-
for poly in df_state["geometry"][index]
856+
for poly in df_state["geometry"][index].geoms
857857
]
858858
y = [
859859
poly.simplify(simplify_state).exterior.xy[1].tolist()
860-
for poly in df_state["geometry"][index]
860+
for poly in df_state["geometry"][index].geoms
861861
]
862862
for segment in range(len(x)):
863863
x_states = x_states + x[segment]

0 commit comments

Comments
 (0)