Reputation: 701
Is there an explanation of the following output?
In [1]: import scipy.stats as ss
In [2]: ss.rankdata([1, 2, 3, 3, 4, 3, 4, 5])
Out [2]: array([1. , 2. , 4. , 4. , 6.5, 4. , 6.5, 8. ])
I was expected the following output, without decimals for the rankings.
Out [2]: array([1. , 2. , 4. , 4. , 6., 4. , 6., 8. ])
Also, why are the rankings of type float instead of type int?
Upvotes: 0
Views: 472