title: data argument can't be an iterator
body: <p>When trying to execute the following code to create a dataframe from a csv file I get the following error.</p>
  
  <p><strong>code:</strong></p>
  
  <pre><code>f = open(os.path.expanduser("~/Downloads/test.csv"))
  data = pd.DataFrame(f)
  </code></pre>
  
  <p><strong>error:</strong></p>
  
  <p>raise TypeError("data argument can't be an iterator")
  TypeError: data argument can't be an iterator</p>
  
  <p>why is this and how can I fix it ?  </p>