Lesson 12.5 · Pro
Sessions from raw events
Split each person's events into sessions using a time gap, then measure the sessions.
In this lesson
- Step 1: time since the previous event
- Step 2: flag the start of each session
- Step 3: a running sum numbers the sessions
- Measure each session
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.