[ 
https://issues.apache.org/jira/browse/ARROW-2286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17659313#comment-17659313
 ] 

Rok Mihevc commented on ARROW-2286:
-----------------------------------

This issue has been migrated to [issue 
#18241|https://github.com/apache/arrow/issues/18241] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [Python] Allow subscripting pyarrow.lib.StructValue
> ---------------------------------------------------
>
>                 Key: ARROW-2286
>                 URL: https://issues.apache.org/jira/browse/ARROW-2286
>             Project: Apache Arrow
>          Issue Type: Wish
>          Components: Python
>    Affects Versions: 0.8.0
>            Reporter: Antoine Pitrou
>            Assignee: Krisztian Szucs
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.10.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> {code:python}
> >>> obj
> {'x': 42, 'y': True}
> >>> type(obj)
> pyarrow.lib.StructValue
> >>> obj['x']
> Traceback (most recent call last):
>   File "<ipython-input-96-93ad3443b3c6>", line 1, in <module>
>     obj['x']
> TypeError: 'pyarrow.lib.StructValue' object is not subscriptable
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to