Last answered:

28 Dec 2022

Posted on:

09 Dec 2022

0

Resolved: Splitting for train and test

I'm curious as I'm going through the notebook, why did Ken or Jeff decide to do their split using almost a loc type variable compared to using train_test_split in sklearn? Is there some sort of time series component that I'm not aware of?

1 answers ( 1 marked as helpful)
Instructor
Posted on:

28 Dec 2022

0

hey jonathan! sorry for the late reply here, but you can use sklearn version or use the .loc version. I use .loc, because then I can split based off the date of my choosing.

Submit an answer