Answers for "drop and rename column in pyspark dataframe"

3

how to rename a column in pyspark dataframe

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

Code answers related to "drop and rename column in pyspark dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language