title: How to save pandas data frame in spark into amazon s3?
body: <p>I would like to save pandas dataframe into a s3 bucket.
  I tried below one which is already answered by somebody. But, It just gives me an error, <code>AttributeError: 'DataFrame' object has no attribute 'write'</code>.</p>
  
  <hr>
  
  <pre><code>df.write.format("com.databricks.spark.csv").save("s3n://id:pw@bucket")
  </code></pre>
  
  <hr>
  
  <p>Any idea? Thank you in advance.</p>