Expanding Cumulative Revenue - Medium Pandas Data Manipulation Interview Problem | Unnested