title: converting pandas data frame to dictionary of tuples
body: <p>I am using the following code to convert a Dataframe whose structure is as follows</p>
  
  <p><a href="https://i.stack.imgur.com/2r1yM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2r1yM.png" alt="enter image description here"></a></p>
  
  <pre><code>dummy= df.set_index(['location']).T.to_dict('list')
  for key,value in dummy.items():
      dummy[key] = tuple(value)
  </code></pre>
  
  <p>to obtain a dictionary of tuples
  {loc_1:(35.99,-81.44),loc_2:(22.55,-108.5)}</p>
  
  <p>Question
  1. Will the order be preserved as lat-long? (Is there a chance the first tuple can turn out to be (-81.44,35.99)?</p>
  
  <p>Question 2. Is there a better(faster/elegant)way of doing the above</p>