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

Krisztian Szucs commented on ARROW-2698:
----------------------------------------

[~wesmckinn] With the current master it works as expected, see test 
https://github.com/apache/arrow/blob/master/python/pyarrow/tests/test_table.py#L366

> [Python] Exception when passing a string to Table.column
> --------------------------------------------------------
>
>                 Key: ARROW-2698
>                 URL: https://issues.apache.org/jira/browse/ARROW-2698
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Dominik Moritz
>            Priority: Minor
>             Fix For: 0.10.0
>
>
> https://arrow.apache.org/docs/python/generated/pyarrow.Table.html#pyarrow.Table.column
>  says that I can select a column by name. However, I get an error `TypeError: 
> an integer is required`. 
> <ipython-input-16-d22a22c23810> in build_arrow(name)
>      31     print(table.schema)
>      32 
> ---> 33     table.column('ARRIVAL')
>      34 
>      35     writer = pa.RecordBatchFileWriter(f'{name}.arrow', table.schema)
> table.pxi in pyarrow.lib.Table.column()
> TypeError: an integer is required



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

Reply via email to