SyntaxFix
Write A Post
Hire A Developer
Questions
collect_set can help to get unique values from a given column of pyspark.sql.DataFrame df.select(F.collect_set("column").alias("column")).first()["column"]
df.select(F.collect_set("column").alias("column")).first()["column"]