If I'm trying to plot a graph of the number of people born in each month, and I have a list like:
[ {"bob": "January"},{"Peter":"February"},{"Mary":"March"}, {"John":"March"}, {"Sully": "March"}, {"Kai":"April"} ,{"Jerry": "February"}, {"Polly":"may"}, {"Nina": "June"}, {"Mic": "July"}, {"Paul": "August"}, {"Ferry": "January"}]
What is the best way to plot a graph with the months on the x axis and the number of people who are born in that month on the y axis? I have the y values which are the months, but I'm having trouble with the x values. Do I have to go through the list and calculate the frequency of each month first? I will be working with a much bigger list with more than a thousand items and need a solution that is efficient.
