Skip to content

Commit

Permalink
chore: pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-elgreco committed Oct 13, 2024
1 parent 6441299 commit eb3d68f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/datafusion/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ def with_column(self, name: str, expr: Expr) -> DataFrame:
"""
return DataFrame(self.df.with_column(name, expr.expr))

@deprecated(
"with_column_renamed() is deprecated. Use :py:meth:`~DataFrame.rename` instead"
)
def with_column_renamed(self, old_name: str, new_name: str) -> DataFrame:
r"""Rename one column by applying a new projection.
Expand All @@ -189,7 +186,7 @@ def rename(self, mapping: dict[str, str]) -> DataFrame:
into one the following symbols (" or ' or \`).
Args:
mapping (dict[str, str]): mapping of old (key) to new (value) names
mapping: mapping of old (key) to new (value) names
Returns:
DataFrame with one or multiple columns renamed.
Expand Down

0 comments on commit eb3d68f

Please sign in to comment.