I'm new to pyspark and don't yet have a full overview of the avl. methods. I want to get unique values of a single column of a pyspark dataframe. This approach doesn't work:
F.array_distinct(my_spark_df.my_column).???
Whatever ???-function I try to apply to the column, toPandas(), collect(), display() etc., I get:
TypeError: 'Column' object is not callable
I also found this thread which is similar, but didn't help in my case since I want to select only distinct values before collecting them.