title: python - Split a string in a CSV file by delimiter
body: <p>I have a CSV file with the following data:</p>
  
  <pre><code>Date,Profit/Losses
  Jan-10,867884
  Feb-10,984655
  Mar-10,322013
  Apr-10,-69417
  May-10,310503
  Jun-10,522857
  Jul-10,1033096
  Aug-10,604885
  Sep-10,-216386
  Oct-10,477532
  Nov-10,893810
  Dec-10,-80353
  </code></pre>
  
  <p>I have imported the file in python like so:</p>
  
  <pre><code>with open(csvpath, 'r', errors='ignore') as fileHandle:
  lines = fileHandle.read()
  </code></pre>
  
  <p>I need to loop through these lines such that I extract just the months i.e. "Jan", "Feb", etc. and put it in a different list. I also have to somehow skip the first line i.e. <code>Date, Profit/Losses</code> which is the header.</p>
  
  <p>Here's the code I wrote I so far:</p>
  
  <pre><code>months = []
  for line in lines:
      months.append(line.split("-")
  </code></pre>
  
  <p>When I try to print the <code>months</code> list though, it splits every single character in the file!! 
  Where am I going wrong here??</p>