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
Group by or Aggregate? for non numerical attributes
Hi Guys, me again, the newbie of RapidMiner.
There are 4 cities in the dataset and each city has multiple stores.
And I want to somehow group by the stores with the individual city.
Instead of:
City A, Store1
City A, Store2
City A, Store3
City B, Store4
....
I kinda want to have a form of:
City A, Store 1
Store 2
Store 3
City B, Store 4
....
I hope it makes sense.
Could anyone help me with if there is an operator could achieve this?
Thanks again.
There are 4 cities in the dataset and each city has multiple stores.
And I want to somehow group by the stores with the individual city.
Instead of:
City A, Store1
City A, Store2
City A, Store3
City B, Store4
....
I kinda want to have a form of:
City A, Store 1
Store 2
Store 3
City B, Store 4
....
I hope it makes sense.
Could anyone help me with if there is an operator could achieve this?
Thanks again.
0
Best Answer
-
MartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data ScientistHi @LilC,do i see this correctly, that you want to remove the Value in case the proceeding one is the same?In this case i would use Lag, to create a shifted city attibute (City-1). Then you can use Generate Attributes withif(City==[City=1],MISSING_NOMINAL,City)I hope this helps!cheers,Martin- Sr. Director Data Solutions, Altair RapidMiner -
Dortmund, Germany5