title: Reading a text file in pandas with separator as linefeed (\n) and line terminator as two linefeeds (\n\n)
body: <p>I have a text file of the form :</p>
  
  <p>data.txt</p>
  
  <pre><code>2
  8
  4
  
  3
  1
  9
  
  6
  5
  7
  </code></pre>
  
  <p>How to read it into a pandas dataframe </p>
  
  <pre><code>  0 1 2
  0 2 8 4
  1 3 1 9
  2 6 5 7
  </code></pre>