title: Converting pandas PrettyDict to dictionary
body: <p>I have a pandas dataframe df:</p>
  <pre><code>pd.DataFrame({'col1': [&quot;a&quot;, &quot;x&quot;, &quot;g&quot;, &quot;y&quot;, &quot;q&quot;, &quot;n&quot;],
                'col2': [&quot;b&quot;, &quot;f&quot;, &quot;s&quot;, &quot;p&quot;, &quot;t&quot;, &quot;c&quot;],
                'col3': [1, 10, 1, 1, 10, 2]}
  )
  
  &gt;
      col1  col2  col3 
  0    a     b     1
  1    b     f     10
  2    g     s     1
  3    y     p     1
  4    q     t     10
  5    1     0     2
  </code></pre>
  <p>I grouped it based on col3:</p>
  <pre><code>grp = df.groupby([&quot;col3&quot;])
  groups = grp.groups
  </code></pre>
  <p>But the result is an object with <code>pandas.io.formats.printing.PrettyDict</code> type. Is there any way that I can convert it to a normal dictionary?</p>