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