I have two pandas dataframes containing IDs and birth dates. The birth dates in dataframe 1 are only an estimation so in order to capture as many similarities as possible I am looking to match IDs in Dataframe 2 that are within 45 days of the birthdate in Dataframe 1. Example as follows:
df_A:
ID     birth_date
A_2    1-1-1945
A_3    1-1-1967
A_4    1-1-2000
A_5    1-1-1994
A_6    2-1-1994
df_B:
ID     birth_date
B_1    2-2-1945
B_2    12-25-1944
B_3    1-5-2000
B_4    1-7-1994
Expected Output:
ID_1     ID_2
A_2      B_1
A_2      B_2
A_4      B_3
A_5      B_4
A_6      B_4
Edited in more example to fully show what I would like to receive.
 
    