The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Data Manipulation
I have the following data:
I would like to group the data by User ID as follows:
ID
CategotyA (contains the number of subcategories)
CategoryB (contains the number of subcategories)
CategoryC( contains the number of subcategories)
example output
Could someone help by providing the process and parameter needed?
User ID | Category | Subcategory | |
02 | A | Sub1 | |
02 | B | Sub2 | |
03 | C | Syb7 |
I would like to group the data by User ID as follows:
ID
CategotyA (contains the number of subcategories)
CategoryB (contains the number of subcategories)
CategoryC( contains the number of subcategories)
example output
User ID | CategoryA | CategoryB | |
02 | 20 | 11 | |
03 | 5 | 55 | |
04 | 9 | 21 |
Could someone help by providing the process and parameter needed?
0
Best Answer
-
IngoRM Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University Professor Posts: 1,751 RM FounderHi,you can also Turbo Prep to do this sort of transformation very easily. After loading your data in Turbo Prep, simply switch to "Pivot" and drop the columns from the left into the right places. "User ID" into "group-by" on the left, "Category" into the column headers at the top, and "Subcategory" into the aggregates at the bottom. That's it :-)Hope this helps,Ingo5
Answers
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts