You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Dominik Moritz (JIRA)" <ji...@apache.org> on 2018/06/11 22:15:00 UTC

[jira] [Created] (ARROW-2698) Get column by name

Dominik Moritz created ARROW-2698:
-------------------------------------

             Summary: Get column by name
                 Key: ARROW-2698
                 URL: https://issues.apache.org/jira/browse/ARROW-2698
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
            Reporter: Dominik Moritz


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)