mergeAsof is an ordered left-join that matches on the nearest key rather than an exact key. It is especially useful for time-series data — e.g., matching each trade to the most recent quote.
mergeAsof