title: Reading csv lines in python open() not working when looking for empty first empty line
body: <p>When reading line by line, at the first “empty” line, there is all commas. When I expect <code>\n</code>.</p>
  <p>open</p>
  <pre><code>file = 'file.csv'
  f = open(file)
  </code></pre>
  <p>and</p>
  <pre><code>f.readline()
  </code></pre>
  <p>gives me this</p>
  <p><code>‘,,,,,,,,,,,,,,,,,,\n’</code></p>
  <p>Ironic but causing my code to read forever and never “finish”.</p>
  <p>I want this to work:</p>
  <pre><code>f = open(file)
  
  while f.readline() != '\n':
      pass
  
  df = pd.read_csv(f, header=None)
  
  f.close()
  </code></pre>
  <p>The commas get in the way here. Essentially breaking the code. What am I missing? Why is one CSV file suddenly reading in lines like this? The other files I have are not showing commas when reading line by line.</p>
  <p>The other files just show this</p>
  <p><code>‘\n’</code></p>