title: Train test split on the basis of date in Python, is it possible?
body: <p>I want to split the data on the basis of date as follows:</p>
  
  <p>The data should be divided into:</p>
  
  <ul>
  <li>train (June 2007 - May 2015) data</li>
  <li>test (June 2015 - Dec 2015) data</li>
  </ul>
  
  <p>Can someone help me with this code?</p>