Skip to content

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

Description

@asfimport
----> 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

Reporter: Alessandro Molina / @amol-

Note: This issue was originally created as ARROW-18189. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions