You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/02/11 04:49:31 UTC

[GitHub] [arrow] emkornfield commented on issue #9462: pyarrow.lib.ArrowInvalid: Could not convert with type numpy.ndarray: tried to convert to int

emkornfield commented on issue #9462:
URL: https://github.com/apache/arrow/issues/9462#issuecomment-777200781


   Hi @bhavitvyamalik we prefer questions like this get asked through the user@arrow.apache.org mailing list.  It seems that you should also be including what type you are passing to pyarrow.array(...)
   
   On an older version of arrow the following works for me with pyarrow3:
   ```
   >>> pyarrow.array(list(data))
   <pyarrow.lib.ListArray object at 0x11866c980>
   [
     [
       0,
       0,
       0
     ],
     [
       0,
       0,
       0
     ],
     [
       0,
       0,
       0
     ],
     [
       0,
       0,
       0
     ],
     [
       0,
       0,
       0
     ]
   ]
   >>> pyarrow.array(list(data)).type
   ListType(list<item: uint8>)
   ```


----------------------------------------------------------------
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.

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