[
https://issues.apache.org/jira/browse/ARROW-2172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17659200#comment-17659200
]
Rok Mihevc commented on ARROW-2172:
-----------------------------------
This issue has been migrated to [issue
#18138|https://github.com/apache/arrow/issues/18138] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [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
> Assignee: Antoine Pitrou
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.9.0
>
>
> 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
(v8.20.10#820010)