Commits


Joris Van den Bossche authored and GitHub committed 1815a679e47
GH-38325: [Python] Implement PyCapsule interface for Device data in PyArrow (#40717) ### Rationale for this change PyArrow implementation for the specification additions being proposed in https://github.com/apache/arrow/pull/40708 ### What changes are included in this PR? New `__arrow_c_device_array__` method to `pyarrow.Array` and `pyarrow.RecordBatch`, and support in the `pyarrow.array(..)`, `pyarrow.record_batch(..)` and `pyarrow.table(..)` functions to consume objects that have those methods. ### Are these changes tested? Yes (for CPU only for now, https://github.com/apache/arrow/pull/40385 is a prerequisite to test this for CUDA) * GitHub Issue: #38325