Fixed metadata propagation in Dataframe.apply (issue #28283)
Co-authored-by: Mohamad Rkein <mohamad_rkein@usp.br>
Co-authored-by: Rafael Rodrigues <rrvsrafael@gmail.com>

In reference to #28283

- [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [x] whatsnew entry
