Hi!
Iβm having some trouble with plotly express.
In particular, I wrote a script for an interactive treemap chart and it worked fine until a couple of weeks ago. Unexpectedly and without applying any modification, it stopped working. Also, some Plotly example scripts do not work anymore on my machine.
For instance, if I run the following script:
import plotly.express as px
df = px.data.tips()
fig = px.treemap(df, path=['day', 'time', 'sex'], values='total_bill')
fig.show()
I get the following error:
AttributeError: type object 'object' has no attribute 'dtype'
My script is very similar to this default example, although my dataframe has some None value.
I speculate that the problem relates to the βpathβ since the errors disappear if I run alternative code without this argument. How can I fix the issue?
Thanks
Vt
PS. Sorry for the βstupidβ question, Iβm rather new to Pyhon programming