I have this simple piece of code:
import pandas as pd
import plotly.express as px
import numpy as np
df2 = pd.read_csv(‘agenti-sum.csv’, sep=’,’)
df2 = df2.replace(np.nan, 0)
fig = px.sunburst(df2, path=[‘agente’, ‘cliente’], values=‘valore’)
And my csv data is this:
With these datas I get a blank screen… The Sunburst chart does not appear.
But when I change the negative number
it works fine.
Likewise… if I simply change the first field in this way.
or the second field
It works with no problem.
I don’t know is this is a bug…
My plotly version is 4.10.0.
Is there something wrong with my code?
Many thaks for your time.