BUG: duplicate (getitem) indexing with iloc (GH6766)

fix the getitem issues for iloc on #6766