Prior to PySpark 3.3, appending multiple columns to a Spark DataFrame required chaining multiple withColumn
calls.
In PySpark 3.3 and later, you can use the withColumns method in a dictionary style to append multiple columns to a DataFrame. This syntax is more user-friendly for pandas users.