[
https://issues.apache.org/jira/browse/ARROW-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16508946#comment-16508946
]
Wes McKinney edited comment on ARROW-2698 at 6/11/18 11:29 PM:
---------------------------------------------------------------
I updated the issue title. This function should be able to accept a string
based on a glance at its implementation, so this is a bug
was (Author: wesmckinn):
I updated the issue title. This function should be able to accept a string
based on a glance at its implementation
> [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)