title: Python pandas: Getting the locations of a value in dataframe
body: <p>Suppose I have the following dataframe:</p>
  
  <pre><code>   'a' 'b'
  0   0   0
  1   1   0
  2   0   1
  3   0   1
  </code></pre>
  
  <p>Is there a way I could get the index/column values for which a specific value exists? For example, something akin to the following:</p>
  
  <pre><code>values = df.search(1)
  </code></pre>
  
  <p>would have <code>values = [(1, 'a'), (2, 'b'), (3, 'b')]</code>.</p>