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
I have a pandas dataframe with a multicolumn index consisting of three levels, which I want to plot using a plotly.express.bar. First dimension Station (str) goes into the facets, the second dimension Night (datetime.date) goes onto the x-axis and the third dimension Limit (int) is going to be the stacked bars.
The bug is, that the resulting figure does not show any data on facets which do only have data at one Night. The expected outcome would be that even though data exists only on one date this data is presented.
I have a pandas dataframe with a multicolumn index consisting of three levels, which I want to plot using a plotly.express.bar. First dimension
Station
(str) goes into the facets, the second dimensionNight
(datetime.date) goes onto the x-axis and the third dimensionLimit
(int) is going to be the stacked bars.The bug is, that the resulting figure does not show any data on facets which do only have data at one
Night
. The expected outcome would be that even though data exists only on one date this data is presented.A reproducible example looks like this:
The figure created looks like this:

When replacing the
datetime.date
type by a string the figure looks like expected:Due to this behavior I suspect the plot yielded from the initial data frame is false and there is a bug inside of the plotly.express code.
Thanks for helping out.
The text was updated successfully, but these errors were encountered: