BUG: add sorting_reamaining=True to avoid IndexError GH25831
- [x] closes #25831
- [x] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Sure! Just added! Hello @YuRenee! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:











* In the file [`test_issue1.py`](https://github.com/pandas-dev/pandas/blob/86928636178c14c6411d968b03324d663eedf3ee/test_issue1.py):

> [Line 5:14](https://github.com/pandas-dev/pandas/blob/86928636178c14c6411d968b03324d663eedf3ee/test_issue1.py#L5): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 15:1](https://github.com/pandas-dev/pandas/blob/86928636178c14c6411d968b03324d663eedf3ee/test_issue1.py#L15): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 16:1](https://github.com/pandas-dev/pandas/blob/86928636178c14c6411d968b03324d663eedf3ee/test_issue1.py#L16): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 17:60](https://github.com/pandas-dev/pandas/blob/86928636178c14c6411d968b03324d663eedf3ee/test_issue1.py#L17): [W292](https://duckduckgo.com/?q=pep8%20W292) no newline at end of file



##### Comment last updated at 2020-12-14 17:38:40 UTC can you merge master can you merge master and update This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this. closing as stale. if you want to continue, pls ping and can re-open.