No warning is raised by MultiIndex when .loc is called with list containing missing keys #17758
Labels
Deprecate
Functionality to remove in pandas
Indexing
Related to indexing on series/frames, not to indexes themselves
MultiIndex
Milestone
Code Sample, a copy-pastable example if possible
From #17295 (comment)
Problem description
#17295 introduced a warning when
obj.loc[a_list]
is called witha_list
containing keys not inobj.index
, but only applies to flatIndex
es.MultiIndex
es need an analogous PR.Expected Output
The same, but with a
FutureWarning
.The text was updated successfully, but these errors were encountered: