You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the above example code, we can see different "Float64" type data values, -9.791984E-21, 9.3715776E-26, and 1.8790257E-28, when we rank them with method="min", they are assigned with same rank. If we cast the type to "float64" and call s.rank(method="min"), we can get the right results.
Expected Behavior
For "Float64" type data values, -9.791984E-21, 9.3715776E-26, and 1.8790257E-28, when we rank them with method="min", they should be assigned with different ranks.
Installed Versions
pd.version
'2.0.0'
The text was updated successfully, but these errors were encountered:
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
From the above example code, we can see different "Float64" type data values, -9.791984E-21, 9.3715776E-26, and 1.8790257E-28, when we rank them with method="min", they are assigned with same rank. If we cast the type to "float64" and call s.rank(method="min"), we can get the right results.
Expected Behavior
For "Float64" type data values, -9.791984E-21, 9.3715776E-26, and 1.8790257E-28, when we rank them with method="min", they should be assigned with different ranks.
Installed Versions
The text was updated successfully, but these errors were encountered: