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.

Column Headers File

greyulvgreyulv Member Posts: 4 Learner I
edited August 2022 in Help
Have a column header file and multiple data files without header.  Need to have the column headers added as example data set.

Attached column_headers.csv file with column names
Attached data file example with multiple rows without column names
Attached XML process trying to use Append operator (fails with no lookup key between two files)

Trying to achieve the following as an example data set
var01,var02,var03,var04
Home,About,Investors,1971
Home,About,Careers,Jobs
Home,About,Team,CEO
Home,About,Privacy,CCPA

Best Answers

  • ollyclarkollyclark Employee, Member Posts: 4 RM Team Member
    Solution Accepted
    Have you tried loading both CSV files without specifying attribute names? Then you can use the Append and Rename by Example operators to achieve the desired result.


  • greyulvgreyulv Member Posts: 4 Learner I
    Solution Accepted
    @ollyclark appreciate the help, thank you

Answers

  • ollyclarkollyclark Employee, Member Posts: 4 RM Team Member
    No problem! I should also mention that if you choose not to treat all of your value as polynominal (e.g text) in Read CSV, instead setting a data type for each column, then you might also consider this alternative solution that uses Transpose and Rename (with dictionary). See below and attached.

Sign In or Register to comment.