Binning Events into Time Intervals

A time series can group events into intervals with specified edges and a calendar or elapsed-time convention.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a boundary event
  2. Keep interpretation appropriate

Trace a boundary event

For minute bins starting at 10:00 and 10:01, an event at exactly 10:01 belongs to the second if intervals are half-open. Inclusive and exclusive comparison makes that coverage precise.

Keep interpretation appropriate

Daily bins in a named local zone can have a different elapsed duration on clock transition days. SQL day grouping describes that boundary.[1][2]

References

  1. Hadley Wickham, Tidy Data ↩
  2. Matplotlib Development Team, Plot Types ↩