method
ndarray.searchsorted(v, side='left', sorter=None) Find indices where elements of v should be inserted in a to maintain order.
For full documentation, see numpy.searchsorted
See also
numpy.searchsorted
    © 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
    https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.ndarray.searchsorted.html