trend
Packages
statsmodels.tsa.seasonal.seasonal_decompose — statsmodels
Paid Tutorial
Seasonality, trend and noise in time series data | Python
Examples
from xarray, calculate trend with p-value, using scipy.stats.linregress python - Linear regression with pandas time series - Stack Overflow