title: Find location of specific value in dataframe of distances
body: <p>I've been browsing for an answer to my issue but I can't seem to find a suitable solution. I have a dataframe with distances (NxN cells) and I find the minimum distance of the whole dataframe with:
      min_distance = distances.values.min()
  Now I need to find the location (which row and which column of the dataframe) of the min_distance. Any ideas?</p>
  
  <p>EDIT</p>
  
  <p><em>Minimal code</em></p>
  
  <pre><code>import numpy as np
  import pandas as pd
  
  distances=[]
  for i in range(5):
      distances.append([])
      for j in range(5):
          distances[i].append(np.random.randint(10))
  distances=pd.DataFrame(distances)
  min_distance = distances.values.min()
  print "Minimum=", min_distance
  print "Location of minimum value="
  </code></pre>