Skip to content

Incorrect interpretation of nullable data types #3495

Closed
@sergiykhan

Description

@sergiykhan

Description

Using Pandas' nullable data types (Int64 and Float64) result in an incorrect plot.

Code

import pandas as pd
import plotly.express as px
df = pd.DataFrame(
    data=[1,2,3,4,5],
    columns=['a'],
    index=pd.date_range('2021-01-01', '2021-01-05'),
    dtype='Int64',
)

px.bar(df)

Result

wrong

Expected

correct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions