eddelbuettel opened a new issue, #810:
URL: https://github.com/apache/arrow-nanoarrow/issues/810
In the past, one could generating a `nanoarrow` `Array` object and pass it
from R via `reticulate` to Python to, say, instantiate a `polars` object.
That no longer works as an intermediate PyCapsule layer is added, and this
may need an extra layer of unpacking
```r
> pp <- palmerpenguins::penguins
> na <- nanoarrow::as_nanoarrow_array(pp)
> class(na)
[1] "nanoarrow_array"
> pdf <- polars::as_polars_lf(na) # conversion on the R side, R package
`polars` know `nanoarrow`
> pdf
<polars_lazy_frame>
>
> po <- reticulate::import("polars")
> df <- po$from_arrow(na) # conversion on the Python side via
`reticulate`
Error in py_call_impl(callable, call_args$unnamed, call_args$named) :
TypeError: expected PyArrow Table, Array, or one or more RecordBatches;
got 'PyCapsule'
Run `reticulate::py_last_error()` for details.
>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]