title: How to get position of specific value in Pandas DataFrame
body: <pre><code>import pandas as pd
  df = pd.DataFrame(np.zeros((8, 8))
  df.index = [1, 2, 3, 4, 5, 6, 7, 8]
  df.columns = [1, 2, 3, 4, 5, 6, 7, 8]
  df[0][0] = &quot;word&quot;
  </code></pre>
  <p>Now I want to find the position of the string <code>&quot;word&quot;</code>,so something like <code>df.function[df == &quot;word&quot;]</code>. And I want the return to be <code>[0, 0]</code> for position</p>
  <p>How do I do this?</p>