check first and last points' labels are correct
- [ ] closes #31580 
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

@jbrockmendel seems this worked, thanks for your suggestion! thanks @MarcoGorelli 