Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-2698

[Python] Exception when passing a string to Table.column

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: Python
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              kszucs Krisztian Szucs
              Reporter:
              domoritz Dominik Moritz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: