DOC: Changed from_custom_template example
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).

Changes after latest review of #54039  
The failures are not related to my changes I think. Thanks @DeaMariaLeon 