← All topics
Quiz: Time Series with pandas: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. What does s.resample("W").sum() do for a daily series?
- Q2. What does this print? (code)
- Q3. Why is a 7-day window a good choice for a rolling average of daily sign-ups with a weekday pattern?
- Q4. What does this print? (code)
- Q5. What does the seasonal naive forecast predict for next Monday?
- Q6. Why must time-series data be split by date instead of randomly?
- Q7. In the moving-average forecast, why is .shift(1) applied after rolling(7).mean()?
- Q8. A new model gets MAE 9 on the test period; the seasonal-naive baseline gets MAE 5. What should you conclude?
- Q9. Which pandas call gives the average sign-ups for each weekday?
- Q10. Exam week causes an unusual dip in sign-ups every semester. How should a forecast handle it?