Difference between df.repartition and DataFrameWriter partitionBy?
<p>What is the difference between DataFrame <code>repartition()</code> and DataFrameWriter <code>partitionBy()</code> methods?</p>

<p>I hope both are used to "partition data based on dataframe column"? Or is there any difference?</p>