Ganti nama colmnname di dataaframe scala

df.withColumnRenamed("dob","DateOfBirth")
    .printSchema()
Bright Bug