rank function returns int64 when float64 isn't necessary
- [ ] closes #55598
- [ ] [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.

Made a few small changes, makes it so when the parameter "method" is anything other than "average" and pct is false, the ranks returned are int64 instead of float64.

122 out of 564 tests failed due to this change, with the majority of cases the issue being:
E       Attribute "dtype" are different
E       [left]:  Int64
E       [right]: float64

That is expected due to the changes, and if this commit is in line with what was expected in the issue #55598 I can change those tests so that they pass.
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. Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.