Skip to content

Commit adf2fe4

Browse files
authored
add column.rename (#221)
* add column.rename * note non-inplaceness
1 parent 30b0586 commit adf2fe4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

spec/API_specification/dataframe_api/column_object.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,3 +710,19 @@ def to_array_object(self, dtype: Any) -> Any:
710710
understanding that consuming libraries would then use the
711711
``array-api-compat`` package to convert it to a Standard-compliant array.
712712
"""
713+
714+
def rename(self, name: str | None) -> Column[DType]:
715+
"""
716+
Rename column.
717+
718+
Parameters
719+
----------
720+
name : str
721+
New name for column.
722+
723+
Returns
724+
-------
725+
Column
726+
New column - this does not operate in-place.
727+
"""
728+
...

0 commit comments

Comments
 (0)