Fix for #54167
- [x] closes #54167
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).

I can check only for less than 0 instead of less than or equal to 0. Am I right? Hi,
I am new to the library. May I know where should I add the tests and the what's new. 
Could you also tell me how can I test this? You can review https://pandas.pydata.org/docs/development/contributing.html Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.