[
https://issues.apache.org/jira/browse/ARROW-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17659724#comment-17659724
]
Rok Mihevc commented on ARROW-2698:
-----------------------------------
This issue has been migrated to [issue
#19089|https://github.com/apache/arrow/issues/19089] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [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
> Assignee: Krisztian Szucs
> 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
(v8.20.10#820010)