summaryrefslogtreecommitdiff
path: root/doc/release/upcoming_changes/16056.deprecation.rst
blob: 788b8c30a1bbd80456af5a5d8a4beda05cad01d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Inexact matches for mode and searchside are deprecated
------------------------------------------------------
Inexact and case insensitive matches for mode and searchside were
valid inputs earlier and will give a DeprecationWarning now.
For example, below are some example usages which are now deprecated and will
give a DeprecationWarning.

    import numpy as np
    arr = np.array([[3, 6, 6], [4, 5, 1]])
    # mode: inexact match
    np.ravel_multi_index(arr, (7, 6), mode="clap")  # should be "clip"
    # searchside: inexact match
    np.searchsorted(arr[0], 4, side='random')  # should be "right"