title: In Python how to obtain a partial view of a dict?
body: <p>Is it possible to get a partial view of a <code>dict</code> in Python analogous of pandas <code>df.tail()/df.head()</code>. Say you have a very long <code>dict</code>, and you just want to check some of the elements (the beginning, the end, etc) of the <code>dict</code>. Something like:</p>
  
  <pre><code>dict.head(3)  # To see the first 3 elements of the dictionary.
  
  {[1,2], [2, 3], [3, 4]}
  </code></pre>
  
  <p>Thanks</p>