A simple Trend Analysis

SQL lite is interfaced with python using SQLlite3 .
The KPI is queried form DB.
In order to analyze the trend, I have fitted a 1st order linear
regression and conducted a t test on the coefficient for significance.
The trick is to apply a low pass filter before hand in order to get rid
of everyday noise.