title: Best way to find most commonly occurring dictionary inside a list of dictionaries
body: <p>I have a list of dictionaries where each dictionary has keys 'shape' and 'colour'. For example:</p>
  
  <pre><code>info = [
      {'shape': 'pentagon', 'colour': 'red'},
      {'shape': 'rectangle', 'colour': 'white'},
      # etc etc
  ]
  </code></pre>
  
  <p>I need to find the most commonly occurring shape/colour combination. I decided to do this by finding the most commonly occurring dictionary in the list. I've cut my method down to this:</p>
  
  <pre><code>frequency = defaultdict(int)
  
  for i in info:
      hashed = json.dumps(i) # Get dictionary, turn into string to store as key in frequency dict
      frequency[hashed] += 1
  
  most_common = max(frequency, key = frequency.get) # Get most common key and unhash it back into dict
  print(json.loads(most_common))
  </code></pre>
  
  <p>I'm kind of new to python and I always end up finding out about some 1-2 line function that ends up doing what I wanted to do in the first place. I was wondering if a quicker method existed in this case? Maybe this can end up helping another beginner out because I couldn't find anything after ages of googling.</p>