improve the `detect_multiple_peaks` method
For the moment, the method assumes that the dataframe entries have numeric and contiguous indexes (see instruction values[i + 1] - values[i]
). This requires a reset_index()
after the find_peaks
method.
The function needs to be rewritten to overcome this constraint by iterating directly on the pairs of peaks