STYLE: remove absolufy imports, use ruff
- [ ] closes #50812 
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

Checks are failing, looks like this didn't work - did you manage to run it locally?  Locally I run with this command and it failed
`pre-commit run ruff --all-files` Exactly, could you fix up the errors please?  looks like this has gone stale - closing for now so others can work on it, but thanks for your PR! if you want to continue, please open a new pull request