Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

How to create dictionary ?

HarshavHarshav Member Posts: 33 Learner II
edited May 2021 in Help
I have two attributes in this format .
att1   att2
a,b     1,2
c,a      4,5

I want to take att1 as keys and att2 as values .I have to generate output in this format.
att3
{a:1,b:2}
{c:4,a:5}

Answers

  • kaymankayman Member Posts: 662 Unicorn
    You can use the generate attributes operator for that.
    Use a combination of concat, replace and position. 
  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,529 RM Data Scientist
    Hi there,

    RapidMiner ExampleSets consist like most dataframes of primitives, not of complex data structures. As in most dataframes, you cannot store dictionaries in ExampleSets.
    Can you maybe describe your problem a bit more? Usually you need to think more SQL-ish to attack the problem properly.

    Best,
    Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
Sign In or Register to comment.