I’m trying to simply fit a line over the last period of observations, then calculate the slope of that line (percentage change over time). Is this not possible with Flux?
So far, I’ve only found this old thread with a messy solution I can’t even being to understand
Not trying to predict anything with Holt-Winters, and this is financial data without seasonality.
I’m experienced with InfluxQL, but new to Flux. Googling “how to use Flux package” leads nowhere. The contributed functions docs don’t mention how to use those not listed there (such as this statsmodels package). I’m not even clear if these packages are client-side or need to be installed/compiled server-side. (Update: they’re client-side, but still no idea how to import them from JS code other than copy/pasting the function code from stdlib/contrib/anaisdg/statsmodels/linearreg.flux into my query.)
Try creating a separate environment with v2 and see if the backwards compatibility apis for influxql where needed until you’ve migrated things over. I haven’t seen an end date mentioned yet, but it’s reasonable to assume that 1.x won’t be maintained for much longer , except maybe for enterprise customers
Is there any further documentation on this function? When trying to use this function on multiple tables at once, it uses the values of all of the tables combined rather than evaluating each table individually.