← 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?
- A.pandas can't shuffle dates
- B.A random split lets the model train on days after the ones it is tested on, so it sees the future
- C.Random splits are slower
- 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 →