title: Convert object to a datetime
body: <p>all,</p>
  
  <p>I have a dataframe that looks like this:</p>
  
  <pre><code>         carry_dt product_type
  0      2018-05-17         Swap
  1      2018-05-17         Swap
  2      2018-05-17         Swap
  3      2018-05-17         Swap
  4      2018-05-17         Swap
  5      2018-05-17     Physical
  
  carry_dt        object
  product_type    object
  dtype: object
  </code></pre>
  
  <p>I am trying to select the data frame by date:</p>
  
  <pre><code>allHoldings.loc[allHoldings['carry_dt']=='2018-05-17']
  </code></pre>
  
  <p>I get an empty dataframe why is it the case?</p>
  
  <p>Do i need to convert the column <code>'carry_dt'</code> to  a date?</p>
  
  <p>Any help is much appreciated </p>