← Quiz: Time Series with pandas: all 10 questions
Quiz: Time Series with pandas · Question 9 of 10
Which pandas call gives the average sign-ups for each weekday?
Which pandas call gives the average sign-ups for each weekday?
- A.s.rolling(7).mean()
- B.s.resample("D").mean()
- C.s.groupby(s.index.day_name()).mean()
- D.s.diff(7)
Answer & explanation
Correct answer: s.groupby(s.index.day_name()).mean()
Group the rows by the name of the day.
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 →