Closed
Description
This is something I've chatted with @MarcoGorelli offline about. At the time it was implemented in seaborn, the Dataframe Interchange Protocol was the best option for exchanging dataframe-like data. However, since that was implemented in seaborn, the PyArrow Capsule Interface has come along and solved many of the issues that the DataFrame Interchange Protocol left open.
Without knowing the current state of the interchange implementation of seaborn, switching to the PyArrow Capsule Interface should solve at least the following issues:
- It will add support for polars and other dataframe libraries (Feature Request for Polars library Support on Seaborn #3277 and Support for Pola.rs DF #3188)
- It will use the Arrow type system, which supports aggregate types (Try
to_pandas
rather than erroring if interchanging to pandas doesn't work? #3533) - The wonkiness of pandas' type system won't be inherited by seaborn (potentially solving
size
parameter ofscatterplot
does not accept Float64 type #3519)
The interface has been adopted by a good deal of projects already, some of which are being tracked in apache/arrow#39195
Metadata
Metadata
Assignees
Labels
No labels