Python/pyspark data frame rearrange columns April 3, 2023 by Tarik You can use select to change the order of the columns: df.select("id","name","time","city")