[Enh]: Pass through the Arrow PyCapsule Interface #784
Labels
enhancement
New feature or request
high priority
Your PR will be reviewed very quickly if you address this
We would like to learn about your use case. For example, if this feature is needed to adopt Narwhals in an open source project, could you please enter the link to it below?
The Arrow PyCapsule Protocol makes it possible to share Arrow data between libraries without requiring a dependency on pyarrow. Many of the DataFrame libraries that narwhals wraps already support it (See apache/arrow#39195 for ecosystem summary), so my thinking is that it wouldn't be too much work to support the protocol on the Narwhals DataFrame itself.
Please describe the purpose of the new feature or describe the problem to solve.
Vega-Altair recently adopted Narwhals as a way to support polars without a pyarrow dependency, and I'm looking at how I could do the same in VegaFusion. The next VegaFusion release is going to support ingesting DataFrames that support the PyCapsule Interface (WIP by @kylebarron in vega/vegafusion#501), so it would be nice to be able to pass the Narwhals DataFrame directly to VegaFusion and process it using this protocol.
Suggest a solution if possible.
No response
If you have tried alternatives, please describe them below.
No response
Additional information that may help us understand your needs.
No response
The text was updated successfully, but these errors were encountered: