You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
s = pd.Series([1, 1], index=[(1, 1), (1, 1)])
s[(1, 1)]
raises KeyError: (1, 1). Within pandas._libs.index.IndexEngine._get_loc_duplicates, we're using ndarray.searchsorted which interprets the tuple as an array-like of values to search for rather than a single tuple.