Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Rename and Drop Columns in Spark DataFrames
Comment¶
You can use withColumnRenamed to rename a column in a DataFrame.
You can also do renaming using alias when select columns.