Remove linear trend along axis from data.
If type is ‘constant’ then remove mean only.
scipy.signal.get_window
scipy.signal.resample