BUG: repr formating to use iloc rather than getitem for element access (GH5605)

closes #5605