BUG: Series/DataFrame.rank() doesn't handle small floats correctly #6868

adding test for ranking with np.inf

Added release note #6886

Fixing float conversions in test_rank()