BUG: pd.offsets.MonthEnd() delevers wrong month
[DOC] - Added more examples and explanation regarding MonthEnd method.

- [ ] closes #48779
- [ ] [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.



you'll also need
```
closes #48779
```
in the PR description (as per the template) and finally, you should check that `pre-commit run --files pandas/_libs/tslibs/offsets.pyx` passes @MarcoGorelli Thanks for your comments. Very useful. I've made some updates now and another updates will follow this evening! @MarcoGorelli  I still receive error regarding trailing white spaces:

![image](https://user-images.githubusercontent.com/61096773/196181362-07aab0f5-a2ff-47ef-983d-ca146ed47f17.png)

However I removed all the white spaces in the end of lines. Not sure what else I could do. Do you have any idea, what may cause this problem? the hook has taken care of it for you - now you can just do `git add -u` and `git commit` again

as an aside, [please don't post images of code](https://youtu.be/svlsnZFWWDE) > the hook has taken care of it for you - now you can just do `git add -u` and `git commit` again
> 
> as an aside, [please don't post images of code](https://youtu.be/svlsnZFWWDE)

Ok, sure. Let me do it tomorrow. Today I am editing directly on the website, as I don't have access to my personal laptop to run git commands. I'll let you know tomorrow evening, in case the issue remains. Thanks.

And ok. This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this. > This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this.

closing for now, but feel free to ping if you want to keep working on this and I can reopen