You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (JIRA)" <ji...@apache.org> on 2019/06/03 12:44:00 UTC

[jira] [Updated] (ARROW-1890) [Python] Masking for date32 arrays not working

     [ https://issues.apache.org/jira/browse/ARROW-1890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Pitrou updated ARROW-1890:
----------------------------------
    Component/s: Python

> [Python] Masking for date32 arrays not working
> ----------------------------------------------
>
>                 Key: ARROW-1890
>                 URL: https://issues.apache.org/jira/browse/ARROW-1890
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Uwe L. Korn
>            Assignee: Uwe L. Korn
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.8.0
>
>
> {code}
> arr = np.array([date(2017, 4, 3), date(2017, 4, 4)], dtype='datetime64[D]')
> mask = [True, False]
> t32 = pa.date32()
> result = pa.array(arr, mask=np.array(mask))
> expected = pa.array(np.array([None, date(2017, 4, 4)], dtype='datetime64[D]'))
> {code}
> The above code produces an array that has no null values.



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