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 2020/04/17 21:00:01 UTC

[jira] [Assigned] (ARROW-2714) [C++/Python] Variable step size slicing for arrays

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

Wes McKinney reassigned ARROW-2714:
-----------------------------------

    Assignee: Wes McKinney

> [C++/Python] Variable step size slicing for arrays
> --------------------------------------------------
>
>                 Key: ARROW-2714
>                 URL: https://issues.apache.org/jira/browse/ARROW-2714
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++, Python
>            Reporter: Florian Jetter
>            Assignee: Wes McKinney
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Array slicing should support variable step sizes
> The current behavior raises an {{IndexError}}, e.g.
> {code}
> In [8]: import pyarrow as pa
> In [9]: pa.array([1, 2, 3])[::-1]
> ---------------------------------------------------------------------------
> IndexError Traceback (most recent call last)
> <ipython-input-9-20da5f9ab67a> in <module>()
> ----> 1 pa.array([1, 2, 3])[::-1]
> array.pxi in pyarrow.lib.Array.__getitem__()
> array.pxi in pyarrow.lib._normalize_slice()
> IndexError: only slices with step 1 supported
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)