spark - Converting dataframe to list improving performance
<p>I need to covert a column of the Spark dataframe to list to use later for matplotlib</p>

<pre><code>df.toPandas()[col_name].values.tolist()
</code></pre>

<p>it looks like there is high performance overhead this operation takes around 18sec
is there other way to do that or improve the perfomance?</p>