Skip to content

Add support for pyarrow Table and/or polars DataFrame #3637

Closed
@sa-

Description

@sa-

Apache Arrow is slowly becoming the new standard for dataframes, and there is a dataframe library written on top of Arrow called Polars https://github.com/pola-rs/polars and it's really fast

It would be nice if there was support for polars directly, or for pyarrow tables so that I could use plotly with it like one would with pandas.

For example, it would be nice if I could do this:

import polars as pl
import plotly.express as px

df = pl.DataFrame({"a":[1,2,3,4,5], "b":[1,4,9,16,25]})

px.line(df, x="a", y="b")
# or px.line(df.to_arrow(), x="a", y="b")
# if you would only like to provide support for pyarrow Tables and not polars specifically

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