You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Alessandro Molina (Jira)" <ji...@apache.org> on 2022/10/28 13:49:00 UTC

[jira] [Created] (ARROW-18189) [Python] Table.drop should support passing a single column

Alessandro Molina created ARROW-18189:
-----------------------------------------

             Summary: [Python] Table.drop should support passing a single column
                 Key: ARROW-18189
                 URL: https://issues.apache.org/jira/browse/ARROW-18189
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Python
            Reporter: Alessandro Molina


{code}
----> 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"
{code}

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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)