deannaschneider.com - Delving Into Data – Ramblings of a coder turned data geek

Description: Ramblings of a coder turned data geek

Example domain paragraphs

Ramblings of a coder turned data geek

Window functions are handy little tools that can be used to compute rolling averages, ranking by company or customer, and a host of other nifty things. But, they can be a little hard to comprehend, especially where dates and times are concerned.

In Scala, the easiest way to make time windows that don’t fall neatly on a day or year is using the rangeBetween function. Let’s use an example to illustrate.