#48188 FIX: iloc works with namedtuple
- unit test for added for test_iloc.py that verifies that all four uses of iloc given in the reproducible example now works

- [x] closes #48188
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
@WillAyd could you review this pr? Thanks for the PR, but there's already a PR open addressing this issue https://github.com/pandas-dev/pandas/pull/57004

Closing to let that user still work on that issue but happy to have your help on another `good first issue`