Fixed metadata propagation in Dataframe.idxmax and Dataframe.idxmin #…
…28283

- [x] contributes to #28283  calling .__finalize__ on Dataframe.idxmax, idxmin

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





There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: 

##### Comment last updated at 2022-07-22 18:16:36 UTC Also, please see https://pandas.pydata.org/docs/development/contributing_codebase.html#pre-commit for how to fix that CI failure Thanks @SomtochiUmeh 