🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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 →
  1. Q1. What does s.resample("W").sum() do for a daily series?
  2. Q2. What does this print? (code)
  3. Q3. Why is a 7-day window a good choice for a rolling average of daily sign-ups with a weekday pattern?
  4. Q4. What does this print? (code)
  5. Q5. What does the seasonal naive forecast predict for next Monday?
  6. Q6. Why must time-series data be split by date instead of randomly?
  7. Q7. In the moving-average forecast, why is .shift(1) applied after rolling(7).mean()?
  8. Q8. A new model gets MAE 9 on the test period; the seasonal-naive baseline gets MAE 5. What should you conclude?
  9. Q9. Which pandas call gives the average sign-ups for each weekday?
  10. Q10. Exam week causes an unusual dip in sign-ups every semester. How should a forecast handle it?