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