title: Filter Dataframe based on Timestamp column
body: <p>My requirement is to filter dataframe based on timestamp column such that data which are only 10 minutes old. Dataframe looks like: </p>
  
  <pre class="lang-none prettyprint-override"><code>ID,timestamp,value
  ID-1,8/23/2017 6:11:13,4.56
  ID-2,8/23/2017 6:5:21,5.92
  ID-3,8/23/2017 5:49:13,6.00
  </code></pre>
  
  <p>I am trying the following code but not getting the desired output</p>
  
  <pre><code>df.filter(to_date(df("timestamp")).gt(lit(now.get(Calendar.MINUTE)-10)))
  </code></pre>
  
  <p>Any help will be appreciated.</p>