Introduction
We use np.searchsorted() to find where to insert a value into a sorted list so the list stays sorted. It helps us quickly find the right spot without sorting again.
You want to add a new score into a sorted list of scores and keep it sorted.
You need to find the position to insert a timestamp into a sorted list of timestamps.
You want to quickly find where a new value fits in a sorted dataset for analysis.
You are merging sorted data and want to know insertion points without re-sorting.