detrend
scipy.signal
scipy.signal.detrend
https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.detrend.html#scipy.signal.detrend
Examples
SciPy でデータの線形傾向を除去 | org-技術
https://org-technology.com/posts/detrend.html
Guide To Detrending Using Scipy Signal -
https://analyticsindiamag.com/guide-to-detrending-using-scipy-signal/
xarray
Xscale
xscale.signal.fitting.detrend
https://xscale.readthedocs.io/en/latest/generated/xscale.signal.fitting.detrend.html
Remove model drift using control run simulations | Yu Cheng
https://fischcheng.github.io/2017/10/05/remove-model-drift-using-control-run-simulations/
3rd-order fit
Detrend xarray DataArrays using polyfit
https://gist.github.com/rabernat/1ea82bb067c3273a6166d1b1f77d490f
statsmodels
statsmodels tsa
statsmodels.tsa.tsatools.detrend
http://www.statsmodels.org/stable/generated/statsmodels.tsa.tsatools.detrend.html
Tips
How to Use and Remove Trend Information from Time Series Data in Python
https://machinelearningmastery.com/time-series-trends-in-python/
numpy - Detrend or Filter a sawtooth signal (Python) - Stack Overflow
https://stackoverflow.com/questions/35458363/detrend-or-filter-a-sawtooth-signal-python
See also
trend