title: Converting some columns from pandas dataframe to list of lists
body: <p>I have a <code>dataframe</code>. I would like some of the data to be converted to a list of list. The columns I'm interested in are the <code>index</code>, <code>Name</code>, and <code>Births</code>. My code works, but it seems inefficient and for some reason the letter L is added to the end of each index.</p>
  
  <p>My code:</p>
  
  <pre><code>import pandas as pd
  
  
  data = [['Bob', 968, 'Male'], ['Jessica', 341, 'Female'], ['Mary', 77, 'Female'], ['John', 578, 'Male'], ['Mel', 434, 'Female']]
  headers = ['Names', 'Births', 'Gender']
  df = pd.DataFrame(data = data, columns=headers)
  indexes = df.index.values.tolist()
  mylist =  [[x] for x in indexes]
  
  for x in mylist:
      x.extend([df.ix[x[0],'Names'], df.ix[x[0],'Births']])
  
  print mylist
  </code></pre>
  
  <p>Desired Output:</p>
  
  <pre><code>[[0, 'Bob', 968], [1, 'Jessica', 341], [2, 'Mary', 77], [3, 'John', 578], [4, 'Mel', 434]]
  </code></pre>