I have 2 tables of different sizes which I would like to merge in the following way in Python using Pandas:
UID Property Date
1 A 10/02/2016
2 B NaN
3 A 10/02/2016
4 C NaN
5 C NaN
6 A 10/02/2016
Table 1 contains information about Property transactions and a Date related to the Property. As some of the dates are NaNs, I would like to proxy them from another table (Table 2) containing information solely about properties, but not replacing any dates in Table 1:
Property DateProxy
A 01/01/2016
B 03/04/2016
C 16/05/2016
In the end I would like to obtain the following:
UID Property Date
1 A 10/02/2016 (kept from T1)
2 B 03/04/2016 (imported from T2)
3 A 10/02/2016 (kept from T1)
4 C 16/05/2016 (imported from T2)
5 C 16/05/2016 (imported from T2)
6 A 10/02/2016 (kept from T1)