title: Azure Data-bricks : How to read part files and save it as one file to blob?
body: <p>I am using Python spark writing a data-frame to a folder in blob which gets saved as part files :</p>
  
  <pre><code>df.write.format("json").save("/mnt/path/DataModel")
  </code></pre>
  
  <p>Files are saved as :</p>
  
  <p><a href="https://i.stack.imgur.com/x87Yd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x87Yd.png" alt="enter image description here"></a></p>
  
  <p>i am using following code to merge it into one file : </p>
  
  <pre><code>#Read Part files
   path = glob.glob("/dbfs/mnt/path/DataModel/part-000*.json")  
  
  #Move file to FinalData folder in blbo
      for file in path: 
            shutil.move(file,"/dbfs/mnt/path/FinalData/FinalData.json")
  </code></pre>
  
  <blockquote>
    <p>But <strong>FinalData.Json</strong> only have last part file data and not data of all
    part files.</p>
  </blockquote>