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
Multiply a record based on a field
alejandro_tobon
Member Posts: 16 Maven
I have table1 with 2 columns (FruitName, Qty) see the sample data.
FruitName Qty
Apple 4
Orange 2
I need a way to convert the above data (FruitName, Qty) to be the quantity of records.
In the case of Apple, I need to get as a result 4 records and 2 for the Orange.
FruitName Qty
Apple 1
Apple 1
Apple 1
Apple 1
Orange 1
Orange 1
Thanks.
FruitName Qty
Apple 4
Orange 2
I need a way to convert the above data (FruitName, Qty) to be the quantity of records.
In the case of Apple, I need to get as a result 4 records and 2 for the Orange.
FruitName Qty
Apple 1
Apple 1
Apple 1
Apple 1
Orange 1
Orange 1
Thanks.
0
Answers
at least I can't think of any operator that does this "de-aggregation" out of the box. So you have two possibilities as always if you lack some certain functionality in RapidMiner:
Build a rather complex process or extend RapidMiner. The extension has the advantage that native code of course will be much faster in the application, but you need programming skills or money to hire us for adding this operator.
The process can be built entirely inside RapidMiner and using macros and such stuff you can program right within your process. I have built a small example process, that will solve such a problem. I hope you can adapt it for your own problem: Greetings,
Sebastian