Plotting a geopandas dataframe using plotly

I have a geopandas dataframe and I am trying to plot a choropleth map using the method mentioned below

Here’s a snippet of my dataframe

And here is the code I used

fig = px.choropleth(merged,




fig.update_geos(fitbounds="locations", visible=False)

It produced the below figure

which is obviously not the right figure.

The Plotly version I am using is 4.7.0. I have tried upgrading to a most recent version but it still didn’t work.

Any help is greatly appreciated. For the full code, please see here.