File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/python/plotly/plotly/figure_factory Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -358,15 +358,15 @@ def _calculations(
358
358
elif fips_polygon_map [f ].type == "MultiPolygon" :
359
359
x = [
360
360
poly .simplify (simplify_county ).exterior .xy [0 ].tolist ()
361
- for poly in fips_polygon_map [f ]
361
+ for poly in fips_polygon_map [f ]. geoms
362
362
]
363
363
y = [
364
364
poly .simplify (simplify_county ).exterior .xy [1 ].tolist ()
365
- for poly in fips_polygon_map [f ]
365
+ for poly in fips_polygon_map [f ]. geoms
366
366
]
367
367
368
- x_c = [poly .centroid .xy [0 ].tolist () for poly in fips_polygon_map [f ]]
369
- y_c = [poly .centroid .xy [1 ].tolist () for poly in fips_polygon_map [f ]]
368
+ x_c = [poly .centroid .xy [0 ].tolist () for poly in fips_polygon_map [f ]. geoms ]
369
+ y_c = [poly .centroid .xy [1 ].tolist () for poly in fips_polygon_map [f ]. geoms ]
370
370
371
371
county_name_str = str (df [df ["FIPS" ] == f ]["COUNTY_NAME" ].iloc [0 ])
372
372
state_name_str = str (df [df ["FIPS" ] == f ]["STATE_NAME" ].iloc [0 ])
You can’t perform that action at this time.
0 commit comments