title: How to convert two ECG measurments to HR with frequency 20 hz
body: <p>I have data from two ECG sensors taken at a frequency of 50hz.
  I want to convert this to an HR signal with a frequency of 20hz. I have tried a solution with heartpy, but I can't get good values for HR at low frequency.
  Does anybody have an example of how I can implement this in python?</p>
  <p>The data looks like this:
  <a href="https://i.stack.imgur.com/do74b.png" rel="nofollow noreferrer">Pandas dataframe of signal input</a></p>