How to find average of unique rows in python : I want to find the average of unique values using data frames in python 
For example I have a dataset as follows

     [c1]   [c2]
     foo    3.2 
     bar    4.3 
     foo    3.0 
     foo    2.3 
     bar    4.5 
     foo    1.9 
     bar    4.4


I want output like:

Count of foo = 4 and average of foo is 2.6 //(i.e., (3.2+3.0+2.3+1.9)/4))

count of bar = 3 and average of bar is 4.4 //(i.e., (4.3+4.5+4.4)/3))