Pandas merge_asof направление

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