How to plotted a choropleth using correctly featureidkey ?
CODE: geoURL="https://data.humdata.org/dataset/e66dbc70-17fe-4230-b9d6-855d192fc05c/resource/6fa37b41-ad28-40a6-9641-3b4efd4dbe13/download/ecuador.geojson" with urlopen(geoURL) as response: geoProvinces = json.load(response) df_new = ecuador.rename(columns={'Provinces': 'DPA_DESPRO'}) fig = px.choropleth_mapbox(df_new, geojson=geoProvinces, color=df_new['Confirmed deaths'], locations=df_new['DPA_DESPRO'], #featureidkey='properties.DPA_DESPRO', center={"lat": -2, "lon": -80}, mapbox_style="carto-positron", zoom=9 ) fig.update_layout(margin={"r":0,"t":0,"l":0,"b":0}) fig.show() fig = px.choropleth_mapbox(df_new, geojson=geoProvinces, color=df_new['Confirmed deaths'], locations=df_new['DPA_DESPRO'], center={"lat": -2, "lon": -80}, mapbox_style="carto-positron", zoom=9 ) fig.update_layout(margin={"r":0,"t":0,"l":0,"b":0}) fig.show() There is a missing parameter which is #featureidkey, I tried with featureidkey='properties.DPA_DESPRO' , but the choroplet maps is plotting the areas of each provinces and this gives me the followin error: TypeError: choropleth_mapbox() got an unexpected keyword argument 'featureidkey' I am folloing this link: https://plotly.com/JUMP_LINK__&&__python__&&__JUMP_LINK/choropleth-maps/ Please help me.