Time Travel and Time Series
summary
Apple iTunes sales labeled by calendar month actually belong to fiscal weeks that span adjacent months, causing bogus seasonality and a mistaken extra-week boost in a quarter; a concrete fix uses pandas resample/shift/set_index plus a helper that computes day ratios to split each monthly aggregate into three parts, shifts previous/next parts by one month, concatenates and regroups (78 rows → expanded → trimmed back). Implementation uses pandas and numpy, produces cleaner seasonal patterns that match industry expectations, and successfully reveals true trends for both 3‑year and 7‑year examples.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker intro
- 1:19Pandas data frames overview
- 12:23Time series use case setup
- 16:31Apple fiscal calendar challenges
- 19:28Data cleaning and datetime conversion
- 24:09Pandas resampling techniques
- 29:19Seasonality analysis introduction
- 31:50Adjusting sales data for fiscal months
- 36:14Final data cleanup and visualization
- 38:26Statistical analysis results
- 41:02Product-level sales insights
- 45:44Summary and key takeaways
- 46:37Q&A session
