Published
- 1 min read
pyspark create empty dataframe
The solution for this is noted below
pyspark create empty dataframe
Solution
data = [()]
df = spark.createDataFrame(data)
Try other methods by searching on the site. That is if this doesn’t work