change column names of pyspark dataframe from Row bject code example Example: how to rename a column in pyspark dataframe df.withColumnRenamed("dob","DateOfBirth")