I have a dataframe with two columns to be given in date, but the dtype of that is object.
DF :
A B
7/27/2002 5/29/2013
5/25/2004 4/21/2005
4/22/2008 4/28/2010
6/22/2007 7/30/2008
7/26/2008 6/21/2011
7/29/2008 6/20/2013
6/26/2000 7/23/2005
6/20/1991 7/27/2013
5/22/2005 4/27/2010
I want to subtract B from A to get the no of years and no of days in each of separate columns.
OUTPUT EXPECTED :
NO OF YEARS NO OF DAYS
1 320
2 600
3 900