data.groupby('Income group')['Poorest (Wealth quintile)'].mean()
Income group
High income (H) 30.400000
Low income (L) 3.000000
Lower middle income (LM) 6.090909
Upper middle income (UM) 36.440000
Name: Poorest (Wealth quintile), dtype: float64
This code gives me the following output, but I only want Upper middle in the output. How do I do this?