enable pylint: invalid-sequence-index
Issue #48855. This PR enables pylint type "R" warning: `invalid-sequence-index`.
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
The PR is closed. Changes are added to PR #49447.