title: Reading a CSV file to convert string to float
body: <p>I have a CSV file with data in the format:</p>
  
  <p><strong>Row 1:</strong></p>
  
  <pre><code>[-0.74120803  0.6338942 ],[-1.01583889  0.20901699],[-1.02969154 0.14459244],[ 0.10362657  0.31347394],[ 1.69977092 -0.13384537],[ 1.39789431 -0.52155783],[ 0.02928792  0.24156825],[-1.03616494  0.33943   ],[ 0.84921822  0.47879992],[ 0.279905    0.96184517],[ 0.43602597 -0.27275052],[ 1.4766132  -0.48128695],[ 0.96219625 -0.44950686],[ 0.24356381 -0.0253022 ],[ 0.09346193  0.07808998],[ 0.26571546 -0.1678716 ],[ 0.03055046  1.05913456],[  1.94137487e+00  -1.57339675e-03],[ 0.22311559  0.98762516],[ 2.00176133  0.13017485],......
  </code></pre>
  
  <p>Note that the data is of two rows: the first row contains both x and y coordinates and 2nd row contains their flag status.</p>
  
  <p><strong>Row 2</strong></p>
  
  <pre><code>0,0,0,1,1,1,1,0,0,0,1,1,1,1,1,1,0,1,0,1,1,0,0,1,0,0,0,1,0,1,0,0,1,1,1,0,0,1,0,1,1,0,0,0,1,1,1,1,0,1,0,0,0,0,0,0,0,0,1,0,0,0,1,1,1,0,0,1,1,.......
  </code></pre>
  
  <p>I want to store the data in 3 lists: <code>x</code>, <code>y</code>, and <code>flag</code>.
  Thank you for helping with this part. </p>