RFC: rename func and do correct logic order
Function had hideous logic. Renamed func as well as it wasn't at all only related to timeseries kind-of data.
Function had hideous logic. Renamed func as well as it wasn't at all only related to timeseries kind-of data.