title: Write dataframe to storage container
body: <p>Please help in resolving the below issue. I need to upload a dataframe (i.e. region) as a csv file into storage container (I only have blob_sas_url)</p>
  <p><a href="https://i.stack.imgur.com/uQWKS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uQWKS.png" alt="enter image description here" /></a></p>
  <pre><code>from azure.storage.blob import BlobServiceClient 
  blob_sas_url = &quot;https://..........&quot;
  blob_client = BlobClient.from_blob_url(blob_sas_url)
  
  ## Upload file
  with open(region, &quot;rb&quot;) as data:
      container_client.upload_blob(name=output_blob_name.csv, data=data)
  </code></pre>
  <p>Below error,</p>
  <pre><code>    ---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-125-e92dcc841981&gt; in &lt;module&gt;
        5 
        6 ## Upload file
  ----&gt; 7 with open(region, &quot;rb&quot;) as data:
        8     container_client.upload_blob(name=output_blob_name, data=data)
  
  TypeError: expected str, bytes or os.PathLike object, not DataFrame
  </code></pre>