# Convert Spark DataFrame back to a Pandas DataFrame using Arrow pandasDF = sparkDF.select("*").toPandas()