I have a dataset that includes individual's Ages and Amount Spent in groceries. I need to be able to group those individuals by age, in sets of 10 years, and find the average amount spent in groceries, and do a bar graph that illustrates the average amount spent by age range.
I have tried watching some videos on YouTube and reading some similar questions, but can't find one that really solves my problem.