I am trying to add a column in my dataframe df1
in PySpark.
The code I tried:
import pyspark.sql.functions as F
df1 = df1.withColumn("empty_column", F.lit(None))
But I get this error:
pyspark.sql.utils.AnalysisException: Parquet data source does not support void data type.
Can anyone help me with this?