title: Comparing today date with date in dataframe
body: <p>Comparing today date with date in dataframe
  Sample Data</p>
  
  <pre><code>id        date
  1        1/2/2018
  2        1/5/2019
  3        5/3/2018
  4        23/11/2018
  </code></pre>
  
  <p>Desired output</p>
  
  <pre><code>id        date
  2        1/5/2019
  4        23/11/2018
  </code></pre>
  
  <p>My current code</p>
  
  <pre><code>dfdateList = pd.DataFrame()
  dfDate= self.df[["id", "date"]]
  today = datetime.datetime.now()
  today = today.strftime("%d/%m/%Y").lstrip("0").replace(" 0", "")
  expList = []
  for dates in dfDate["date"]:
      if dates &lt;= today:
          expList.append(dates)
  
  dfdateList = pd.DataFrame(expList)   
  </code></pre>
  
  <p>Currently my code is printing every single line despite the conditions, can anyone guide me? thanks</p>