[
https://issues.apache.org/jira/browse/ARROW-18189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alessandro Molina updated ARROW-18189:
--------------------------------------
Description:
{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 named
{{Table.add_column}}, {{Table.append_column}} and {{Table.set_column}}
was:
{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}}, {{Table.append_column}} and {{Table.set_column}}
> [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
> Priority: Major
> Labels: good-first-issue
>
> {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 named
> {{Table.add_column}}, {{Table.append_column}} and {{Table.set_column}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)