wander removal to get accurate baseline using octave/python
<p>I have a set of files with raw data(set of points) which when plotted looks something like this.</p>

<p><a href="https://i.stack.imgur.com/t4cEl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t4cEl.png" alt="enter image description here"></a></p>

<p>I want to correct baseline and make it something like this. (not exactly same, but the baseline should be horiozontal)
<a href="https://i.stack.imgur.com/fqGLe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fqGLe.png" alt="enter image description here"></a></p>

<p>How can this be done using octave/python?</p>