title: Get data as list of tuple from dataframe column
body: <p><strong>Input data frame :</strong> </p>
  
  <pre><code>    id    value
  0    0     10.2
  1    1      5.7
  2    2      7.4
  3    2      2.5
  4    1      2.6
  5    3      1.6
  6    2      2.9
  7    0      3.6
  8    2      2.7
  </code></pre>
  
  <p><strong>Expected Output :</strong> </p>
  
  <pre><code>format :   [(id,count_of_value,[value as a list])] i.e like this 
             [ (0,2,[10.2, 3.6]), (1, 2, [5.7, 2.6]). . ]
  </code></pre>
  
  <p>So far I am able to get the first two elements i.e id and it's count as a tuple, Also I needed the data in a reverse sorted order,</p>
  
  <pre><code>id_list = df.id.tolist()
  count = Counter(uid_list)
  ID_count_list = sorted(count.items(), key=operator.itemgetter(1),reverse=True)
  </code></pre>
  
  <p>What is the most efficient way to get the value as explained in the expected output?</p>