title: Pyspark Save dataframe to S3
body: <p>I want to save dataframe to s3 but when I save the file to s3 , it creates empty file with <code>${folder_name}</code>, in which I want to save the file.</p>
  
  <p>Syntax to save the dataframe :-</p>
  
  <pre><code>f.write.parquet("s3n://bucket-name/shri/test")
  </code></pre>
  
  <p>It saves the file in test folder but it creates <code>$test</code> under <code>shri</code> .</p>
  
  <p>Is there a way I can save it without creating that extra folder?</p>