[ 
https://issues.apache.org/jira/browse/ARROW-2172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16369218#comment-16369218
 ] 

ASF GitHub Bot commented on ARROW-2172:
---------------------------------------

pitrou commented on issue #1628: ARROW-2172: [C++/Python] Fix converting from 
Numpy array with non-natural stride
URL: https://github.com/apache/arrow/pull/1628#issuecomment-366720200
 
 
   AppVeyor build at https://ci.appveyor.com/project/pitrou/arrow/build/1.0.96

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> [Python] Incorrect conversion from Numpy array when stride % itemsize != 0
> --------------------------------------------------------------------------
>
>                 Key: ARROW-2172
>                 URL: https://issues.apache.org/jira/browse/ARROW-2172
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.8.0
>            Reporter: Antoine Pitrou
>            Priority: Major
>              Labels: pull-request-available
>
> In the example below, the input array has a stride that's not a multiple of 
> the itemsize:
> {code:python}
> >>> data = np.array([(42, True), (43, False)],
> ...:                dtype=[('x', np.int32), ('y', np.bool_)])
> ...:                
> ...:                                        
> >>> data['x']
> array([42, 43], dtype=int32)
> >>> pa.array(data['x'], type=pa.int32())
> <pyarrow.lib.Int32Array object at 0x7ff60a8415e8>
> [
>   42,
>   11009
> ]
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to