ENH: Addition of input arguments for boundaries to add more consistency between methods
- [x] closes #40245
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry

Hello @hewittk! Thanks for opening this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:

* In the file [`pandas/core/arrays/datetimelike.py`](https://github.com/pandas-dev/pandas/blob/438f1baaee66c44ae96653c9ce00e342afbc17f3/pandas/core/arrays/datetimelike.py):

> [Line 1833:33](https://github.com/pandas-dev/pandas/blob/438f1baaee66c44ae96653c9ce00e342afbc17f3/pandas/core/arrays/datetimelike.py#L1833): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 1840:37](https://github.com/pandas-dev/pandas/blob/438f1baaee66c44ae96653c9ce00e342afbc17f3/pandas/core/arrays/datetimelike.py#L1840): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 1844:89](https://github.com/pandas-dev/pandas/blob/438f1baaee66c44ae96653c9ce00e342afbc17f3/pandas/core/arrays/datetimelike.py#L1844): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (114 > 88 characters)

* In the file [`pandas/core/series.py`](https://github.com/pandas-dev/pandas/blob/438f1baaee66c44ae96653c9ce00e342afbc17f3/pandas/core/series.py):

> [Line 4741:22](https://github.com/pandas-dev/pandas/blob/438f1baaee66c44ae96653c9ce00e342afbc17f3/pandas/core/series.py#L4741): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to True should be 'if cond is True:' or 'if cond:'
> [Line 4750:24](https://github.com/pandas-dev/pandas/blob/438f1baaee66c44ae96653c9ce00e342afbc17f3/pandas/core/series.py#L4750): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 4754:89](https://github.com/pandas-dev/pandas/blob/438f1baaee66c44ae96653c9ce00e342afbc17f3/pandas/core/series.py#L4754): [E501](https://duckduckgo.com/?q=pep8%20E501) line too long (106 > 88 characters)

