From 01f6d941e710b4ca419c8dd122e746b78af17c59 Mon Sep 17 00:00:00 2001 From: Marco Edward Gorelli Date: Tue, 19 Dec 2023 07:48:20 +0000 Subject: [PATCH] drop unnecessary _columns (#340) --- spec/API_specification/dataframe_api/dataframe_object.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/API_specification/dataframe_api/dataframe_object.py b/spec/API_specification/dataframe_api/dataframe_object.py index b97b4e03..33c04443 100644 --- a/spec/API_specification/dataframe_api/dataframe_object.py +++ b/spec/API_specification/dataframe_api/dataframe_object.py @@ -221,7 +221,7 @@ def assign(self, *columns: Column) -> Self: """ ... - def drop_columns(self, *labels: str) -> Self: + def drop(self, *labels: str) -> Self: """Drop the specified column(s). Parameters @@ -240,7 +240,7 @@ def drop_columns(self, *labels: str) -> Self: """ ... - def rename_columns(self, mapping: Mapping[str, str]) -> Self: + def rename(self, mapping: Mapping[str, str]) -> Self: """Rename columns. Parameters @@ -863,7 +863,7 @@ def join( Other than the joining column name(s), no column name is allowed to appear in both `self` and `other`. Rename columns before calling `join` if necessary - using :meth:`rename_columns`. + using :meth:`rename`. Parameters ----------