title: Using Csv file for regression
body: <p>I am try to learn regression through CSV file I am getting the following error :</p>
  <pre><code>&gt; ValueError                                Traceback (most recent call
  &gt; last) &lt;ipython-input-36-ca92008c8d98&gt; in &lt;module&gt;
  &gt;       7     for line in f:
  &gt;       8         line=line.strip().split(',')
  &gt; ----&gt; 9         data['Username'].append(float(line[0]))
  &gt;      10 
  &gt;      11 
  &gt; 
  &gt; ValueError: could not convert string to float:
  </code></pre>
  <p>My code is</p>
  <pre><code>for header in [&quot;Username&quot;,&quot;Identifier&quot;,&quot;First name&quot;,&quot;Last name&quot;]:
      data[header]=[]
  
  with open('username.csv','r') as f:
      next(f)
  
      for line in f:
          line=line.strip().split(',')
          data['Username'].append(float(line[0]))
    
  </code></pre>
  <p>and my CSV file looks like this</p>
  <pre><code>Username, Identifier,First name,Last name
  112,9012,2,3.223 
  123,2070,0.8276,3.098
  876,4081,567,4.34
  56,9346,789,3.78
  5,507,9678,2.789
  
     
  </code></pre>