title: Build list from column names Pandas DataFrame
body: <p>So I am operating on a rather large set of data. I am usign Pandas DataFrame to handle this data and am stuck on an efficient way to parse the data into two formatted lists</p>
  
  <p>HERE IS MY DATAFRAME OBJECT</p>
  
  <pre><code>            fet1    fet2    fet3    fet4    fet5
  stim1       True    True    False   False   False
  stim2       True    False   False   False   True
  stim3       ...................................
  stim4       ...................................
  stim5       ............................. so on
  </code></pre>
  
  <p>I am trying to parse each row and create two lists. List one should have the column name of all the true values. List two should have the column names of the false values.</p>
  
  <p>example for stim 1:</p>
  
  <pre><code>list_1=[fet1,fet2]   
  list_2=[fet3,fet4,fet5]
  </code></pre>
  
  <p>I know I can brute force this approach and Iterate over the rows. Or I can transpose and convert to a dictionary and Parse that Way. I can also create Sparse Series objects and then create sets but then have to reference the column names separately.</p>
  
  <p>The only problem I am running into is that I am always getting Quadratic O(n^2) run time.</p>
  
  <p>Is there a more efficient way to do this as a built in functionality from Pandas?</p>
  
  <p>Thanks for your help.</p>