title: How to save panda data frame as CSV in MinIO.?
body: <p>I am new in MinIo and i am using minio python library and trying to save panda data frame as CSV.
  as per there documentation, I am using <a href="https://docs.min.io/docs/python-client-api-reference.html#put_object" rel="nofollow noreferrer">put_object</a> to insert the data in remote cloud location. below is my code.</p>
  
  <pre><code>from minio import Minio
  from minio.error import ResponseError
  from io import StringIO, BytesIO
  import pandas as pd
  import os
  minioClient = Minio('mydomain.com',
                access_key='my_access_key',
                secret_key='scret_key',
                secure=False)
  df = panda data frame
  csv_buffer = StringIO()
  df.to_csv(csv_buffer)
  minioClient.put_object('mu_bucket',
                         'mypath/test.csv',
                          data = csv_buffer.getvalue(),
                          length = csv_buffer.tell(),
                          content_type='application/csv')
  </code></pre>
  
  <p>in there documention all example are saving physical file but i need to save from dataframe.
  thats why i am using StringIO to create a string buffer. but getting the below error.</p>
  
  <pre><code>AttributeError: 'str' object has no attribute 'read
  </code></pre>
  
  <p>Any help is greatly appreciated Thanks.</p>