I have a df such as the one below:
df[(df.Name==name)&(df.Sex==sex)]
The columns available except for the ones mentioned above are "births" and "year". I've plotted a "line" graph with this
df.plot('year', 'births', kind='line')
Visually, I can see that there are more than one peaks in the plot. How can I, using Python, find the exact number of peaks?