STYLE enable pylint: global-variable-not-assigned
Issue #48855. This PR enables pylint type "W" warning:` global-variable-not-assigned`
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Thanks @natmokval 