← All tasks
pythonplotly/plotly.py #4778Not a task: already works

Dataset used in example on scatter plots page is removed in geopandas 1.0

envgap__plotly__plotly.py-4778

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
55597abd1b7a8b8169c5fc47ecd63e9e895de707
Manifest
doc/requirements.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

plotly/plotly.py #4778 · read the original issue
This example here won't run with later versions of geopandas



https://plotly.com/python/scatter-plots-on-maps/#basic-example-with-geopandas



```

import plotly.express as px

import geopandas as gpd



geo_df = gpd.read_file(gpd.datasets.get_path('naturalearth_cities'))



px.set_mapbox_access_token(open(".mapbox_token").read())

fig = px.scatter_geo(geo_df,

                    lat=geo_df.geometry.y,

                    lon=geo_df.geometry.x,

                    hover_name="name")

fig.show()

```



```

     20     error_msg = (

     21         "The geopandas.dataset has been deprecated and "

     22         "was removed in GeoPandas 1.0. New sample datasets are now available "

     23         "in the geodatasets package (https://geodatasets.readthedocs.io/en/latest/)"

     24     )

```



It would be good to have an example that works with earlier and later versions of geopandas
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]