Closed
Description
Code Sample, a copy-pastable example if possible
From #17295 (comment)
In [2]: pd.DataFrame([[i] for i in range(3)], index=pd.MultiIndex.from_product([[1], [5,6,7]])).loc[[(1,5), (3,7)]]
Out[2]:
0
1 5 0.0
3 7 NaN
Problem description
#17295 introduced a warning when obj.loc[a_list]
is called with a_list
containing keys not in obj.index
, but only applies to flat Index
es. MultiIndex
es need an analogous PR.
Expected Output
The same, but with a FutureWarning
.