In addition to the withColumn() method for a dataframe, there is also the withColumnRenamed() method, which is used for renaming columns in a dataframe.