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
how to shift columns/rows of Example Set ?
Best Answer
-
BalazsBarany Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 UnicornNo, there is no single operator.
Also, you can always use the Python scripting operator if you already have a solution in Python.
7
Answers
If I good understand what you want to do, you can use the Reorder Attributes operator.
Hope this helps,
Regards,
Lionel
Varun
https://www.varunmandalapu.com/
Be Safe. Follow precautions and Maintain Social Distancing
so you would copy the value from Col2 to Col3, then from Col1 to Col2, then fill Col1 with missings.
Reorder Attributes would help you in sorting the columns for Loop Attributes.
Then in Loop Attributes you would use Rename to the appropriate name, or Generate Attributes.
Regards,
Balázs
Is there any other way of doing so without using loops? something more like a single operator?
Yep, that is why I was talking about generate attribute before reorder. So, incase of pandas shift the columns are shifted places and a null column is added at the start. So, if you want to shift the colums by 2 periods, you can generate 2 columns with null values and reorder the attributes after that by placing these null columns infront of the original columns. If you want to rename the col names you can do that using rename operator as well. @BalazsBarany informed same but with loops
I know this is not a direct way, but if you dont want to use loops, I guess this might work.
Do you need a sample process?
Varun
https://www.varunmandalapu.com/
Be Safe. Follow precautions and Maintain Social Distancing
Scott