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
{{ message }}
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.
I've been getting unusual results from DataFrame.sortedByDescending() whereas sortedBy() worked as expected. The following two examples were taken from the main page here and slightly augmented. I wanted to sort dataframe rows by the "weight" column in descending order:
A DataFrame: 7 x 4
first_name last_name age weight
Max Doe 23 55
Horst Keanes 12 -0.02
Horst Keanes 12 0.1
Horst Keanes 12 0
Franz Smith 23 -10
Horst Keanes 12 -0.05
Horst Keanes 12 1
In both cases, the "weight" column in the printout is different, but not sorted at all. In case of sortedBy(), the "weight" column was properly sorted...
This looks like a bug to me.
The text was updated successfully, but these errors were encountered:
Indeed. My initial impl was wrong because I could not properly get my head around the difference between order and rank, and also struggled to mix this with the kotlin stdlib. Now, my fix is progressing well including more tests to prevent future regressions.
I've been getting unusual results from DataFrame.sortedByDescending() whereas sortedBy() worked as expected. The following two examples were taken from the main page here and slightly augmented. I wanted to sort dataframe rows by the "weight" column in descending order:
Example (Integers)
Result
Example (Double + negative)
Result
In both cases, the "weight" column in the printout is different, but not sorted at all. In case of sortedBy(), the "weight" column was properly sorted...
This looks like a bug to me.
The text was updated successfully, but these errors were encountered: