Open MarcoGorelli opened 1 week ago
closes #3756 closes https://github.com/mwaskom/seaborn/issues/3533 I'm hoping that this can supersede https://github.com/mwaskom/seaborn/pull/3534
This means that you get support for quite a lot more, e.g.:
cuDF (their interchange protocol implementation is currently broken anyway https://github.com/rapidsai/cudf/issues/17282)
Polars: it fixes the issue reported in #3533, because the PyCapsule interface actually supports nested data types:
In addition, this has no effect on existing pandas users, as there's already an early return for pandas https://github.com/MarcoGorelli/seaborn/blob/0bd85071284d45f38cbf419b8cf1efb2179eda24/seaborn/_core/data.py#L284-L285
I'm sorry for having introduced the Interchange Protocol in the first place. It's turned out to be fairly problematic, see https://github.com/pandas-dev/pandas/issues/56732#issuecomment-2466301769 as the associated discussion for more context
cc @willayd for comments
Implementation wise I think this looks great. Nice work @MarcoGorelli
closes #3756 closes https://github.com/mwaskom/seaborn/issues/3533 I'm hoping that this can supersede https://github.com/mwaskom/seaborn/pull/3534
This means that you get support for quite a lot more, e.g.:
cuDF (their interchange protocol implementation is currently broken anyway https://github.com/rapidsai/cudf/issues/17282)
Polars: it fixes the issue reported in #3533, because the PyCapsule interface actually supports nested data types:
In addition, this has no effect on existing pandas users, as there's already an early return for pandas https://github.com/MarcoGorelli/seaborn/blob/0bd85071284d45f38cbf419b8cf1efb2179eda24/seaborn/_core/data.py#L284-L285
I'm sorry for having introduced the Interchange Protocol in the first place. It's turned out to be fairly problematic, see https://github.com/pandas-dev/pandas/issues/56732#issuecomment-2466301769 as the associated discussion for more context
cc @willayd for comments