title: How can I convert columns of a pandas DataFrame into a list of lists?
body: <p>I have a pandas DataFrame with multiple columns.</p>
  
  <pre><code>2u    2s    4r     4n     4m   7h   7v
  0     1     1      0      0     0    1
  0     1     0      1      0     0    1
  1     0     0      1      0     1    0
  1     0     0      0      1     1    0
  1     0     1      0      0     1    0
  0     1     1      0      0     0    1
  </code></pre>
  
  <p>What I want to do is to convert this <a href="https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.html" rel="noreferrer"><code>pandas.DataFrame</code></a> into a list like following</p>
  
  <pre><code>X = [
       [0, 0, 1, 1, 1, 0],
       [1, 1, 0, 0, 0, 1],
       [1, 0, 0, 0, 1, 1],
       [0, 1, 1, 0, 0, 0],
       [0, 0, 0, 1, 0, 0],
       [0, 0, 1, 1, 1, 0],
       [1, 1, 0, 0, 0, 1]
      ]
  </code></pre>
  
  <p>2u    2s    4r     4n     4m   7h   7v   are column headings. It will change in different situations, so don't bother about it.</p>