polars.Series.search_sorted#

Series.search_sorted(element: int | float) int[source]#

Find indices where elements should be inserted to maintain order.

\[a[i-1] < v <= a[i]\]
Parameters:
element

Expression or scalar value.