snowflake.snowpark.DataFrame.withColumnRenamed¶
- DataFrame.withColumnRenamed(existing: ColumnOrName, new: str) DataFrame[source]¶
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.
with_column_renamed()is an alias ofrename().