title: Python - Get max value in a list of dict
body: <p>I have a dataset with this structure :</p>
  
  <pre><code>In[17]: allIndices
  Out[17]: 
  [{0: 0, 1: 1.4589, 4: 2.4879},
  {0: 1.4589, 1: 0, 2: 2.1547},
  {1: 2.1547, 2: 0, 3: 4.2114},
  {2: 4.2114, 3: 0},
  {0: 2.4879, 4: 0}]
  </code></pre>
  
  <p>I'd like to identify the highest value inside the list of dict. I do as follow :</p>
  
  <pre><code>def findMax(data):
  
      possiblemax = []
      for i in range(len(data)):
          temp = list(data[i].values())
          tempmax = max(temp)
          possiblemax.append(tempmax)
  
      maxValue = max(possiblemax)
      return maxValue
  </code></pre>
  
  <p>It works but I work with a very large dataset and it's a little bit slow. I was wondering of a better and faster way of doing this.</p>
  
  <p>Thanks a lot</p>