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

[Python] Table.drop should support passing a single column

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Python

    Description

      ----> 2 data = dataset.drop("Churn") 
      
      /usr/local/lib/python3.7/dist-packages/pyarrow/table.pxi in pyarrow.lib.Table.drop()
          KeyError: "Column 'C' not found"
      

      Also, for consistency, it would probably be good to have a Table.drop_column alias, as all the other methods are named Table.add_column, Table.append_column and Table.set_column

      Attachments

        Activity

          People

            Unassigned Unassigned
            amol- Alessandro Molina
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: