Skip to content

Commit 2ed2b11

Browse files
geopandas helper
1 parent 4a9b4b6 commit 2ed2b11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/python/plotly/plotly/express/_chart_types.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,11 @@ def choropleth_mapbox(
10291029
return make_figure(
10301030
args=locals(),
10311031
constructor=go.Choroplethmapbox,
1032-
trace_patch=dict(geojson=geojson),
1032+
trace_patch=dict(
1033+
geojson=geojson
1034+
if not hasattr(geojson, "__geo_interface__")
1035+
else geojson.__geo_interface__
1036+
),
10331037
)
10341038

10351039

0 commit comments

Comments
 (0)