title: How to combine more than one count values?
body: <p>I have a point CSV file with latitude, longitude and height information. 
  As seen in the Output below code, where the count value of height is 1, 2, 3, 4 and 5. </p>
  
  <pre><code>df= pd.read_csv("point_25.csv")
  df1 = df.groupby(["latitude", "longitude"])["heights"].count()
  df1.unique()
  # array([2, 1, 3, 5, 4], dtype=int64)
  df1
  # output
  latitude  longitude
  38.6287   -118.7425    1
  38.6289   -118.7426    2
  38.6290   -118.7426    1
  38.6291   -118.7426    2
  38.6292   -118.7426    2
  38.6293   -118.7426    1
                        ..
  38.6294   -118.7426    3
  38.6295   -118.7427    5
  38.6296   -118.7427    3
  38.6297   -118.7427    2
  38.6298   -118.7427    3
  38.6300   -118.7427    2
  Name: heights, Length: 370, dtype: int64
  </code></pre>
  
  <h2>What I want</h2>
  
  <p>If the count value is more than 1 then take the mean of all the heights and give one height value as output for a specific latitude and longitude group such that the count is 1 for every latitude and longitude.</p>