I have a column in dataframe which is of type ArrayType. For now in this column, I have empty lists. Eg:
+-------+
|xyz|
+-------+
|[a,,] |
|[] |
+-------+
I want to remove the null values from the list and output the column as :
+-------+
|xyz|
+-------+
|[a] |
+-------+
How can I achieve this while joining this column? Thank you.