You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2019/02/27 19:07:00 UTC
[jira] [Commented] (ARROW-4324) [Python] Array dtype inference
incorrect when created from list of mixed numpy scalars
[ https://issues.apache.org/jira/browse/ARROW-4324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16779666#comment-16779666 ]
Wes McKinney commented on ARROW-4324:
-------------------------------------
[~keith.j.kraus] are you able to submit a PR for this?
> [Python] Array dtype inference incorrect when created from list of mixed numpy scalars
> --------------------------------------------------------------------------------------
>
> Key: ARROW-4324
> URL: https://issues.apache.org/jira/browse/ARROW-4324
> Project: Apache Arrow
> Issue Type: Bug
> Affects Versions: 0.11.1
> Reporter: Keith Kraus
> Priority: Minor
> Fix For: 0.13.0
>
>
> Minimal reproducer:
> {code:python}
> import pyarrow as pa
> import numpy as np
> test_list = [np.dtype('int32').type(10), np.dtype('float32').type(0.5)]
> test_array = pa.array(test_list)
> # Expected
> # test_array
> # <pyarrow.lib.DoubleArray object at 0x7f009963bf48>
> # [
> # 10,
> # 0.5
> # ]
> # Got
> # test_array
> # <pyarrow.lib.Int32Array object at 0x7f009963bf48>
> # [
> # 10,
> # 0
> # ]
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)