detrend_ts function

Detrend Time Series