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

Separating Column Values on Percentage Basis

P2017000971P2017000971 Member Posts: 8 Learner III
Hello to every one,

thanks For Taking the Time to look into my Question

I will Explain the issue using some examples for better clarification

NO Product Price
1 593
2 623
3 1880
4 2811
5 1208
6 3403
7 2300
8 2406
9 2729
10 2500
Let us Assume we have the Previous Two Columns (i.e. NO and Product Price)
I want to separate their values based on 50% basis of overall values in column
in this Example we have 10 values so the aim is to make it like this :
First Output 
NO Product Price
1 593
2 623
3 1880
4 2811
5 1208

Second Output 
NO Product Price
6 3403
7 2300
8 2406
9 2729
10 2500
If there is way to generate two different outputs, it is good
Also if there was a way to select a portion depending on my preference that is even better.

Answers

  • lionelderkrikorlionelderkrikor RapidMiner Certified Analyst, Member Posts: 1,195 Unicorn
    Hi @P2017000971,

    Here a process (in attached file) that performs what you want to do (based on your example)

    Regards,

    Lionel
  • Telcontar120Telcontar120 RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,635 Unicorn
    You can do this pretty easily with Filter Example Range as well, if you know in advance how many records there are and how many you want in each partition.
    Brian T.
    Lindon Ventures 
    Data Science Consulting from Certified RapidMiner Experts
Sign In or Register to comment.