DOC: Add example for pandas.DataFrame.rolling() with ``on``
- [x] closes #50080

I'm a newbie, and welcome any comments!

> It looks like the docstring validation is failing. Could you investigate?
> 
> I think one example is sufficient

Ok, I will try to pass the docstring validation, and reduce two example to one.

Thanks for your comments! When I use `python make.py --single pandas.DataFrame.rolling`, there is a warning, `WARNING: extlinks: Sphinx-6.0 will require a caption string to contain exactly one '%s' and all other '%' need to be escaped as '%%'.`,  I'm not sure that matters. I'm so sorry that my improper operation messed up the PR! > Almost there 💪

How about this one 😄

 Thank you for taking the time to share your thoughts with me. I really appreciate your review.
