Delete blank rows from csv using pyspark

Viewed 28

I've tried df.na.drop(how="all") to remove the rows which has all columns blank/NULL. but i'm getting same number before and after execution of this method.

df = df.na.drop(how = "all")
print('is empty:::', df.rdd.isEmpty())
df.show()
0 Answers
Related