🎙 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 6 of 10

Why must time-series data be split by date instead of randomly?

Why must time-series data be split by date instead of randomly?

  1. A.pandas can't shuffle dates
  2. B.A random split lets the model train on days after the ones it is tested on, so it sees the future
  3. C.Random splits are slower
  4. D.Dates can't be features
Answer & explanation

Correct answer: A random split lets the model train on days after the ones it is tested on, so it sees the future

Test on the future, train on the past — as in real use.

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 →