IndexSlice cannot infer missing values when an Index object is passed in #16712
Labels
Bug
Indexing
Related to indexing on series/frames, not to indexes themselves
MultiIndex
Needs Tests
Unit test(s) needed to prevent regressions
Milestone
Here is the code snippet:
If an
Index
object is passed into theIndexSlice
object, it cannot infer missing columnspd.IndexSlice[i, 21,]
. A colon has to be usedpd.IndexSlice[i, 21,:]
or pass an array instead of anIndex
object[1,2,3]
I don't know if this is intended.
The text was updated successfully, but these errors were encountered: