CLN: Removed unnecessary variable call
- [x] closes #34934
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry

> Can you prepend `CLN` to the pull request title?

Yes done, just for my learning, why are we doing that? > > Can you prepend `CLN` to the pull request title?
> 
> Yes done, just for my learning, why are we doing that?

It's just to make it clear what a PR does (e.g. this one cleans up some code) Thanks!