title: What happens when a spark dataframe is converted to Pandas dataframe using toPandas() method
body: <p>I have a spark dataframe which i can convert to pandas dataframe using the </p>
  
  <pre><code>toPandas()
  </code></pre>
  
  <p>method available in pyspark.</p>
  
  <p>I have the following queries regarding this?</p>
  
  <ol>
  <li>Does this conversion break the purpose of using spark
  itself(Distributed computing)?</li>
  <li>The dataset is going to be huge , so what about the speed and memory
  issues?</li>
  <li>If  somebody can also explain ,what exactly happens with this one
  line of code,that would really help.</li>
  </ol>
  
  <p>Thanks</p>