rename many similar attribute

Sadegh95Sadegh95 MemberPosts:4Newbie
hi there. i have so many attributes that named "att_1, att_2, ..., att_500". i want to rename them to eg "attribute". how can i do that? Thanks

Answers

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University ProfessorPosts:3,413RM Data Scientist
    Hey,
    have a look at Rename by Replacing. Note that column names need to be unique.

    Cheers,
    Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • Sadegh95Sadegh95 MemberPosts:4Newbie
    I found a way in topics (now couldn't found it) that replace the attributes by combining loop attributes and rename by replacing which can replace attributes to a specific name in one column. i want that way or similar way.
    thanks for your regard
  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University ProfessorPosts:3,413RM Data Scientist
    Sorry, but I do not understand the task at hand.
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • Sadegh95Sadegh95 MemberPosts:4Newbie
    sorry
    i want to rename many columns. can you give me the regular expression to change my attribute names by "rename by replacing" operators?
  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University ProfessorPosts:3,413RM Data Scientist
    From
    att_1 -> attribute_1
    att_2 -> attribute_2
    等等?
    If so:
    att\_(\d+)
    replacement with
    attribute_$1
    should do it
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
    MarcoBarradas
Sign InorRegisterto comment.