how to get unique values of a column in pyspark dataframe

satya
New Contributor

like in pandas I usually do df['columnname'].unique()