title: python, dictionary in a data frame, sorting
body: <p>I have a python data frame called wiki, with the wikipedia information for some people. 
  Each row is a different person, and the columns are : 'name', 'text' and 'word_count'. The information in 'text' has been put in dictionary form (keys,values), to create the information in the column 'word_count'.</p>
  
  <p>If I want to extract the row related to Barack Obama, then:</p>
  
  <pre><code>row = wiki[wiki['name'] == 'Barack Obama']
  </code></pre>
  
  <p>Now, I would like the most popular word. When I do:</p>
  
  <pre><code>adf=row[['word_count']]
  </code></pre>
  
  <p>I get another data frame because I see that:</p>
  
  <pre><code>type(adf)=&lt;class 'pandas.core.frame.DataFrame'&gt;
  </code></pre>
  
  <p>and if I do </p>
  
  <pre><code>adf.values
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>array([[ {u'operations': 1, u'represent': 1, u'office': 2, ..., u'began': 1}], dtype=object)
  </code></pre>
  
  <p>However, what is very confusing to me is that the size is 1</p>
  
  <pre><code>adf.size=1
  </code></pre>
  
  <p>Therefore, I do not know how to actually extract the keys and values. Things like <code>adf.values[1]</code> do not work</p>
  
  <p>Ultimately, what I need to do is sort the information in word_count so that the most frequent words appear first.
  But I would like to understand how to access a the information that is inside a dictionary, inside a data frame... I am lost about the types here. I am not new to programming, but I am relatively new to python.</p>
  
  <p>Any help would be very very much appreciated</p>