Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit e670985

Browse files
Update connector.py
1 parent 80d09b7 commit e670985

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

labelpandas/connector.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,3 @@ def get_table_length(table:pandas.core.frame.DataFrame, extra_client=None):
5555
The length of your table as an integer
5656
"""
5757
return len(table)
58-
59-
def rename_col(table: pandas.core.frame.DataFrame, col:str, to:str):
60-
""" Renames columns into the Labelpandas format
61-
Args:
62-
table : Required (pandas.core.frame.DataFrame) - Pandas DataFrame
63-
col : Required (str) - Existing column name to-be-changed
64-
to : Required (str) - What to rename the column as
65-
Returns:
66-
Updated `table` object with renamed column
67-
"""
68-
existing_cols = get_col_names(table, extra_client=False)
69-
validate_column_name_change(old_col_name=col, new_col_name=to, existing_col_names=existing_cols)
70-
table = table.rename(columns={col:to})
71-
return table

0 commit comments

Comments
 (0)