Skip to content

Exception raised with empty dataframe in v6.0.0rc0 #4919

@KoolADE85

Description

@KoolADE85

Our App Studio test suite caught an issue with this code in the latest RC of plotly.py:

df = pd.DataFrame({
  'x': [],
  'y': [],
})
fig = px.bar(df, x="x", y="y")

In v5.24.1, this produces an empty graph as expected
In v6.0.0rc0, this raises an Exception: ValueError: zero-size array to reduction operation maximum which has no identity

This is a simple case, but a more realistic use case would be when a dataframe is filtered down to nothing due to user input.

Metadata

Metadata

Assignees

Labels

P1needed for current cyclebugsomething broken

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy