How to merge rows in OpenRefine

后端 未结 5 1381
予麋鹿
予麋鹿 2021-01-26 10:12

How to merge rows based on some ID field?

Original Table                   New Table

ID   | Field1 | Field2       ID     | Field1 | Field2
-----|------- |------         


        
5条回答
  •  日久生厌
    2021-01-26 10:37

    In the ID column use the menu option: Edit Cells -> Blank down This should leave you with a table looking like:

    ID   | Field1 | Field2 
    -----|------- |--------
    A        5             
                     10    
    B        1             
                     3
    C        4
                     150
    

    Make sure you are in "Records" mode (this option is at the top left of the data grid). You should see the rows for each ID are grouped together.

    Now use Edit Cells -> Join multi-valued cells on each of the other columns - this should leave you with a single row per record once you have done this for all columns

提交回复
热议问题