I am applying treemap function of plothly.express with COVID-19 data.
fig = px.treemap(df_tm, path=['world', 'continent', 'Country_Region'], values='Fatalities',
color='Fatalities', hover_data=['Country_Region'],
color_continuous_scale='dense', title='Current share of Worldwide COVID19 Cases')
However, I get 'Weights sum to zero, can’t be normalized' error message. So, In order to solve this problem, I check my data, but there is no negative balance.
I don't know what to do. I study this with kaggle data.
https://www.kaggle.com/anshuls235/covid19-explained-through-visualizations