In a Choropleth map, how do I color in countries with a value of 'inf'?

Hi!! So, I was able to create a map using the following code:

The result is the following map:

small_df is the following dataframe. The only change I made that is not shown is that I included the ISO codes relevant to choropleth map.

Now my question is that I want to color in the countries that have โ€œinfโ€ values as percent_change as black. How do I do that?

Thank you for your help!

Hey @Vin welcome to the community.

You are searching for a custom colorscale. Here some information to get you started

1 Like