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