[
https://issues.apache.org/jira/browse/ARROW-5208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16871655#comment-16871655
]
Artem KOZHEVNIKOV commented on ARROW-5208:
------------------------------------------
yes, I'm aware about cython limitations and modern c++ features (looking
sometimes very pythonic :). So if I get it right, in "arrow" every non-trivial
computational part is c++ based and cython is used only to wrap c++ api. Do you
consider in some future to switch to automatic bindings generation in arrow
(like in pytorch with pybind11) and get rid completely of cython (current c++
modules look still far from being auto-generated) ?
> [Python] Inconsistent resulting type during casting in pa.array() when mask
> is present
> --------------------------------------------------------------------------------------
>
> Key: ARROW-5208
> URL: https://issues.apache.org/jira/browse/ARROW-5208
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 0.13.0
> Reporter: Artem KOZHEVNIKOV
> Assignee: Wes McKinney
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.14.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> I would expect Int64Array type in all cases below :
> {code:java}
> >>> pa.array([4, None, 4, None], mask=np.array([False, True, False, True]))
> >>>
> >>>
> <pyarrow.lib.Int64Array object at 0x91fad3a98> [4, null, 4, null ]
> >>> pa.array([4, None, 4, 'rer'], mask=np.array([False, True, False, True]))
> >>>
> >>>
> <pyarrow.lib.Int64Array object at 0x9201f23b8> [4, null, 4, null ]
> >>> pa.array([4, None, 4, 3.], mask=np.array([False, True, False, True]))
> >>>
> >>> <pyarrow.lib.DoubleArray object at 0x91fab7638> [ 4, null,
> >>> 4, null ]{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)