Answers for "how to rename the columns of a dataframe in pyspark with select statement"

3

how to rename a column in pyspark dataframe

df.withColumnRenamed("dob","DateOfBirth")
Posted by: Guest on November-28-2020

Code answers related to "how to rename the columns of a dataframe in pyspark with select statement"

Python Answers by Framework

Browse Popular Code Answers by Language