🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Time Series with pandas: all 10 questions

Quiz: Time Series with pandas · Question 1 of 10

What does s.resample("W").sum() do for a daily series?

What does s.resample("W").sum() do for a daily series?

  1. A.Keeps every 7th row
  2. B.Adds up the values in each week, giving one row per week
  3. C.Computes a 7-day rolling average
  4. D.Shifts the series by one week
Answer & explanation

Correct answer: Adds up the values in each week, giving one row per week

resample is groupby for time buckets.

Can you get the rest right without peeking?

Take the timed Quiz: Time Series with pandas quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →