Skip to content

uint32 dataframe don't display in px.bar #4291

Open
@MarcoGorelli

Description

@MarcoGorelli

Here's an example:

px.bar(
    pd.DataFrame({
        'break_point': [-7, -6., -5, -4, -3],
        'Rain_count': [0, 0, 6, 696, 31335],
    }).astype({'Rain_count': 'uint32'}),
    x='break_point',
    y='Rain_count'
)

image

If I change uint32 to int32, then it displays fine:

image

versions:

  • pandas: '2.0.3'
  • plotly '5.15.0'
  • jupyter: 3.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions