You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plotly.express.bar does not work with pandas uint32 dtype when passing in a list of values for y #4344
Looks like this is the same root cause as #4291, with the same potential fix.
Pasting the relevant portion of my comment from #4291:
Looks like the bug traces to the _is_continuous() function in plotly/express/_core.py, which evaluates to False in the case of Rain_count, causing Plotly Express to decide that Rain_count is the categorical array and should be treated as the bar labels.
It seems the root cause is that dtype.kind for the Rain_count column is u, which is not one of "ifc".
Plausibly we should just change "in "ifc" to in "ifcu" — @MarcoGorelli do you see any issue with that? Looks like that does resolve the issue.
Activity
emilykl commentedon Sep 1, 2026
Looks like this is the same root cause as #4291, with the same potential fix.
Pasting the relevant portion of my comment from #4291:
It looks like this bug is also caused by
uint32columns not being treated as numeric.fix px treating unsigned int columns as categorical