title: two or more whitespace delimiter python
body: <p>I have this txt delimited by whitespaces <a href="https://i.stack.imgur.com/wRQWM.jpg" rel="nofollow noreferrer">sinheader.txt</a>
  . How can I make a script that reads this txt and with it write a csv file.</p>
  
  <p>This is the script Im trying to implement:</p>
  
  <pre><code>import csv
  import pandas as pd
  prueba = open('station.info').readlines()
  open('sinheader.txt', 'w').writelines(prueba[4:-1])
  with open('sinheader.txt', 'r') as in_file:
      lines = (line.split("  ") for line in in_file)
      with open('malobueno.txt', 'w') as out_file:
          writer = csv.writer(out_file)
          writer.writerows(lines)
  </code></pre>
  
  <p>This is what Im getting:<a href="https://i.stack.imgur.com/f9YWI.jpg" rel="nofollow noreferrer">Bad.txt</a></p>