[ https://issues.apache.org/jira/browse/ARROW-4324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rok Mihevc updated ARROW-4324: ------------------------------ External issue URL: https://github.com/apache/arrow/issues/20895 > [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 > Components: Python > Affects Versions: 0.11.1 > Reporter: Keith Kraus > Assignee: Wes McKinney > Priority: Minor > Labels: pull-request-available > Fix For: 0.14.0 > > Time Spent: 1h 40m > Remaining Estimate: 0h > > 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 (v8.20.10#820010)