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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.10.0
    • Python
    • 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

            kszucs Krisztian Szucs
            domoritz Dominik Moritz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: