Skip to content

Commit e5d4623

Browse files
comment
1 parent 68baeaa commit e5d4623

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/python/plotly/plotly/express/_chart_types.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ def choropleth(
874874
locationmode=locationmode,
875875
featureidkey=featureidkey,
876876
geojson=geojson
877-
if not hasattr(geojson, "__geo_interface__")
877+
if not hasattr(geojson, "__geo_interface__") # for geopandas
878878
else geojson.__geo_interface__,
879879
),
880880
)
@@ -1047,7 +1047,7 @@ def choropleth_mapbox(
10471047
trace_patch=dict(
10481048
featureidkey=featureidkey,
10491049
geojson=geojson
1050-
if not hasattr(geojson, "__geo_interface__")
1050+
if not hasattr(geojson, "__geo_interface__") # for geopandas
10511051
else geojson.__geo_interface__,
10521052
),
10531053
)

0 commit comments

Comments
 (0)