after all cleaning data , i got to this point. can anyone help me please to finish it off?
I have 2 dataframe that after all cleaning and merging need to be merge to each other at the end !
df1:
PriceDate   tenor   ccy
3/07/2019   6   USD_AED
df2:
PriceDate   Term_By_Day     Ccy   rate
1/07/2019   7            USD_AED    2.34
2/07/2019   7            USD_AED    3.45
4/07/2019   7            USD_AED    4.89
so my goal is to merge this 2 data-frame based on exact "Ccy" and nearest "pricedate" and nearest "Tenor with Term_by_day".
so the ideal output will be :   
PriceDate   tenor    ccy       rate
3/07/2019   6     USD_AED      whatever it should be 
I believe i have to use interpolation with method=nearest ????? but i'm so lost now !
Can you please give me any tip if i'm on the right track and if interpolation is the best way to do it ?
cheers,
Z
 
    