Horizontal axis rolling
All threads resolved!
All threads resolved!
Compare changes
- Peter Lünenschloß authored
+ 0
− 5
@@ -56,11 +56,6 @@ class RollingMixin:
The internal GitLab Runner Service is temporarily degraded. Jobs might be queued longer than usual. Your own project or group runners as well as the HIFIS Runners are unaffected.
Although a general axis keyword as proposed in #295 (closed) might not be a good idea, - saqc
has a functional gap when trying to apply function on rows instead of columns (for example counting the meassurements present at a certain timestamp or calculating the scattering of meassurements at a certain timestamp.)
So i added that "row wise" functionality to qc.rolling
.
The reason to add it to rolling
, is, that it seems probable, that one might not only want to check for a statistics or an aggregation result at an exact timestamp, but within a certain extension. That can be achieved with a 2 dimensional rolling window.
For example: Get the number of values present within every hour:
qc.rolling(['data1','data2','data3'], func='count', window=1h, target='count')