title: Write .csv file from pandas dataframe with consecutive spaces as delimiter
body: <p>I want to write a text file which is separated by four spaces instead of one tab:</p>
  
  <pre><code>df.to_csv(file,sep= '\s\s\s\s') 
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>df.to_csv(file,sep= '\t')
  </code></pre>
  
  <p>I tried regex :</p>
  
  <pre><code>df.to_csv(file,sep= r'\s{4}') 
  </code></pre>
  
  <p>which did not work either ?</p>
  
  <p>Is this doable without writing and the replacing the delimiter?</p>