@helenadomo test comment
Also, change this line text = df['value'] + ' Tonne' + '<br>' + 'Country ' + df.index to text = df.index, . Just cleans up the hovertext a bit.
text = df['value'] + ' Tonne' + '<br>' + 'Country ' + df.index
text = df.index,
@KyleOS, Can you check this graph?
Just checked the second graph - didn't check how to fix exactly but it seems it's only countries over 1 million that are throwing the NaN errors. Pandas probably has some function to convert from dots to commas.