Show distinct column values in pyspark dataframe
<p>With pyspark dataframe, how do you do the equivalent of Pandas <code>df['col'].unique()</code>.</p>
<p>I want to list out all the unique values in a pyspark dataframe column.</p>
<p>Not the SQL type way (registertemplate then SQL query for distinct values).</p>
<p>Also I don't need <code>groupby</code> then <code>countDistinct</code>, instead I want to check distinct VALUES in that column.</p>