You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "AlenkaF (via GitHub)" <gi...@apache.org> on 2023/06/15 12:56:04 UTC

[GitHub] [arrow] AlenkaF commented on issue #36088: [Python] `ArrowInvalid`: Could not convert `` with type `pyarrow.lib.Int32Scalar`: tried to convert to `int32`

AlenkaF commented on issue #36088:
URL: https://github.com/apache/arrow/issues/36088#issuecomment-1592992827

   `convert_pa_list` returns a list of pyarrow scalars (`ListScalars`) comparing to a list of lists:
   ```python
   >>> [convert_py_list(x) for x in data]
   [[1, 2, 3], [4, 5, 6]]
   >>> [convert_pa_list(x) for x in data]
   [<pyarrow.ListScalar: [1, 2, 3]>, <pyarrow.ListScalar: [4, 5, 6]>]
   ```
   
   Currently `pa.array` constructor doesn't except pyarrow scalars, see: https://github.com/apache/arrow/issues/21761
   We are currently working on this feature and I hope it will get added to 13.0.0 release.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org