I have a column name and a dataframe. I want to check if all values in that column are empty and if it is empty drop the column from the dataframe.
What i did was checked the count of the column with non null values and if count equals 0 drop the column but that seems like an expensive operation in pyspark