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