The RapidMiner community is on read-only mode until further notice. Technical support via cases will continue to work as is. For any urgent licensing related requests from Students/Faculty members, please use the Altair academic forum here.
Order by two columns
Hi!
I have this dataset
userid time
1 28
1 29
2 34
3 2
1 5
2 6
I need to order this data by user and then by time so the desired result is
user time
1 5
1 28
1 29
2 6
2 34
3 2
How can I do it? It doesn't work by using 2 sorts in any order.....
0
Best Answer
-
bea11005 Member Posts: 20 Maven
I've found the solution: it works by ordering in the other way: first by time and then by user.
2
Answers
There is a very nice multi-attribute Sort operator in the Jackhammer extension in the Marketplace.
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
Hi,
You would need a combination of Sort, Group into collection and loop collection operator to achieve this task.
Here is the XML code for the sample process for the same.
Hope this helps.
Cheers,