I have a large dataset based on servers at target locations. I used the following code to calculate the mean of a set of values for each server grouped by Site.
df4 = df4.merge(df4.groupby('SITE',as_index=False).agg({'DSKPERCENT':'mean'})[['SITE','DSKPERCENT']],on='SITE',how='left')
Sample Resulting DF
Site  Server           DSKPERCENT      DSKPERCENT_MEAN
A      1                12                 11
A      2                10                 11
A      3                11                 11
B      1                9                  9
B      2                12                 9
B      3                7                  9
C      1                12                 13
C      2                12                 13
C      3                16                 13
what I need now is to print/export the newly calculated mean per site. How can I print/export just the single unique calculated mean value per site (i.e. Site A has a calculated mean of 11, Site B of 9, etc...)?
 
    