← 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?
- A.Keeps every 7th row
- B.Adds up the values in each week, giving one row per week
- C.Computes a 7-day rolling average
- 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 →