Pandas Merge_asof Direction

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