title: IndexError: list index out of range : error even after the list isn't
body: <p>I get list index out of range error even though it isn't . I am attaching the image of my CSV as well.</p>
  
  <pre><code>name=[]
  value=[]
  readFile=open('CsvMat.csv','r').read()
  eachline=readFile.split('\n')
  
  
  for line in eachline:
      split=line.split(',')
      name.append(split[0])
      value.append(split[1])
  
  pos= arange(len(name))+.5
  barh(pos,value,align='center',color='#b8ff5c')
  yticks(pos,name)
  show()
  </code></pre>