title: print columns names if row equal to value in python
body: <p>How can i  iterate between rows and print the columns names in one column if the value = 1 </p>
  
  <pre><code>mydata = [{'a' : '0', 'b': 1, 'c': 0}, {'a' : 1, 'b': 0, 'c':1}, {'a' : '0', 'b': 1, 'c':1}] 
  df = pd.DataFrame(mydata)
  
  a   b   c   Result 
  0   1   0   b 
  1   0   1   a , c
  0   1   1   b , c
  </code></pre>
  
  <p>The result only shows the columns name that are equal to 1 </p>