title: Error in uploading and saving CSV file in streamlit
body: <p>This is the code that I've written for csv file upload</p>
  <pre><code>import os
  def save_uploadedfile(uploadedfile):
       with open(uploadedfile.name,&quot;wb&quot;) as f:
           f.write(uploadedfile.getbuffer())
  
       return st.success(&quot;Saved File&quot;.format(uploadedfile.name))
  </code></pre>
  <pre><code>import streamlit as st
  uploaded_file = st.file_uploader(&quot;Add dataset (csv) &quot;,type=['csv'])
  if uploaded_file is not None:
      file_details = {&quot;FileName&quot;:uploaded_file.name,&quot;FileType&quot;:uploaded_file.type}
      st.write(file_details)
      save_uploadedfile(uploaded_file)
  </code></pre>
  <p>For some reason the csv file isn't the same after it's uploaded.
  The original file is in this format</p>
  <pre><code>S.no,Course Name,Course Duration,Category,Description,id,Course ID
  1,...
  2,...
  3,...
  </code></pre>
  <p>whereas the uploaded file looks like this</p>
  <pre><code>,S.no,Course Name,Course Duration,Category,Description,id,Course ID
  0,1,other data
  1,2,...
  2,3,..
  
  </code></pre>
  <p>Why is the extra column being added in the beginning ?</p>
  <p>The case was the same when I tried to add the csv file to a dataframe and then converted it to csv.</p>