title: How do I get an age in years and date on pandas
body: <p>Here's my data</p>
  
  <pre><code>Customer_id    Date-of-birth
  1              1992-07-02
  2              1991-07-03
  </code></pre>
  
  <p>Here's my code</p>
  
  <pre><code>import datetime as dt
  df['now'] = dt.datetime.now()
  df['age'] = df['now'].dt.date - df['Date-of-birth']
  </code></pre>
  
  <p>Here's the result</p>
  
  <pre><code>Customer_id    Date-of-birth     age
  1              1992-07-02        xxxx days
  2              1991-07-03        xxxx days
  </code></pre>
  
  <p>The result that I want is</p>
  
  <pre><code>Customer_id    Date-of-birth     age
  1              1992-07-02        26 years 22 days
  2              1991-07-03        27 years 21 days
  </code></pre>
  
  <p>Just let you now, by <code>df.dtypes</code>, <code>Date-of-birth</code> is an object because is based on customer input in dropdown</p>
  
  <p>How can I achieve this? I hope the question is clear enough</p>