title: Split into two columns and convert txt text into a csv file
body: <p>I have the following data:</p>
  
  <pre><code>Graudo. A selection of Pouteria caimito, a minor member...
  
  TtuNextrecod. A selection of Pouteria caimito, a minor member of the Sapotaceae...
  </code></pre>
  
  <p>I want to split it into two columns</p>
  
  <pre><code>Column1       Column2
  ------------------------------------------------------------------------------
  Graudo        A selection of Pouteria caimito, a minor member...
  TtuNextrecod  A selection of Pouteria caimito, a minor member of the Sapotaceae...
  </code></pre>
  
  <p>Need help with the code. Thanks,</p>
  
  <pre><code>import csv # convert
  import itertools #function for a efficient looping
  
  with open('Abiutxt.txt', 'r') as in_file:
      lines = in_file.read().splitlines() #returns a list with all the lines in string, including the line breaks
  
      test = [line.split('. ')for line in lines ] #split period....but...need work
  
      print(test)
  
  
      stripped = [line.replace('', '').split('. ')for line in lines ]
  
      grouped = itertools.izip(*[stripped]*1)
      with open('logtestAbiutxt.csv', 'w') as out_file:
          writer = csv.writer(out_file)
          writer.writerow(('Column1', 'Column2'))
  
          for group in grouped:
              writer.writerows(group)
  </code></pre>