snowflake.snowpark.DataFrame.with_column_renamed¶
- DataFrame.with_column_renamed(existing: Union[Column, str], new: str) DataFrame[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.6.1/src/snowflake/snowpark/dataframe.py#L3440-L3497)¶
Returns a DataFrame with the specified column
existingrenamed asnew.Example:
- Parameters:
existing – The old column instance or column name to be renamed.
new – The new column name.