title: Getting the row and column of a string from a Pandas dataframe
body: <p>I have a dataframe of unique strings and I want to find the row and column for a given string. I want these values because I'll be eventually exporting this dataframe to an excel spreadsheet. The easiest way I've found so far to get these values is the follwing:</p>
  
  <pre><code>jnames = list(df.iloc[0].to_frame().index)
  for i in jnames:
      for k in df[i]:
          if 'searchstring' in str(k):
              print('Column: {}'.format( (jnames.index(i) + 1 ) ) )
              print('Row: {}'.format( list( df[i] ).index('searchstring') ) )
              break
  </code></pre>
  
  <p>Can anyone advise a solution that takes better advantage of the inherent capabilities of pandas?</p>