I am facing difficulties replacing NAT dates with data from other column. I am using python pandas by the way.
For example
Column1 Column2
02-12-2006 2006
05-12-2005 2005
NAT 2008
15-02-2015 2015
NAT 2001
I have the valid dates in column1 and only the years in column2, how can i impute the NAT values using the years from column 2 based on the same row.
My desire result will be
Column1 Column2
02-12-2006 2006
05-12-2005 2005
2008 2008
15-02-2015 2015
2001 2001
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments