I have a dataset with personal data such as name, height, weight and date of birth. I would build a graph with the number of people born in a particular month and year. I\'m
As of April 2019: This will work. Pandas version - 0.24.x
df.groupby([df.dates.dt.year.rename('year'), df.dates.dt.month.rename('month')]).size()