pyspark get unique element from column code example Example: unique values in pyspark column df.select("columnname").distinct().show()