🎙 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 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?

  1. A.s.rolling(7).mean()
  2. B.s.resample("D").mean()
  3. C.s.groupby(s.index.day_name()).mean()
  4. 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 →