Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Extract Identifier Names from a SQL Query Using Sqlfluff
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Boolean Column Operators and Functions in Spark
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.