title: How to take the value after every 10 min?
body: <p>I am using LSTM for forecasting the stock prediction , I did some feature engineering on time series data .I have two columns , first is price and second is date . Now I want to train the model which take the value of price after every ten minutes . Suppose :</p>
  <pre><code>date_index    date      new_price
          
  08:28:31    08:28:31    8222000.0
  08:28:35    08:28:35    8222000.0
  08:28:44    08:28:44    8200000.0
  08:28:50    08:28:50    8210000.0
  08:28:56    08:28:56    8060000.0
  08:29:00    08:29:00    8110000.0
  08:29:00    08:29:00    8110000.0
  08:29:05    08:29:05    8010000.0
  08:29:24    08:29:24    8222000.0
  08:29:28    08:29:28    8210000.0
  </code></pre>
  <p>Lets say the date comes first is <strong>8:28:31</strong> it will takes the value of its corresponding price and at the second time it should take the value of corresponding columns after ten minutes means <strong>8:38:31</strong> , and sometimes this time does not available in data . How to do it . My goal is just to train the model on after every 10 minutes or 15 minutes ?</p>