Kierunek pandas merge_asof
pd.merge_asof(df1, df2, on='col', direction='nearest')
ham64
pd.merge_asof(df1, df2, on='col', direction='nearest')