I have a pyspark dataframe, df
id alias
1 ["jon", "doe"]
2 null
I am trying to replace the nulls and use an empty list
id alias
1 ["jon", "doe"]
2 []
I tried using
.fillna('alias', '[]')
.fillna('alias', create_list([])
and answers from Convert null values to empty array in Spark DataFrame
but none of them are syntactically correct.