grel

OpenRefine: create a shifted copy of a column

杀马特。学长 韩版系。学妹 提交于 2019-12-11 04:38:49
问题 I wonder if OpenRefine lets you access data from other rows, when creating a new column. I suspect it does not (and it would be a sane design principle) but there could be a hack around that. Here is an example of what one could want to do: shifting a column by one row. I have the following table: ╔═════╦════════╗ ║ row ║ Model ║ ╠═════╬════════╣ ║ 1 ║ Quest ║ ║ 2 ║ DF ║ ║ 3 ║ Waw ║ ║ 4 ║ Strada ║ ╚═════╩════════╝ And I want to obtain the following result: ╔═════╦════════╦══════════╗ ║ row ║

How to merge rows in OpenRefine

拥有回忆 提交于 2019-12-09 03:56:30
问题 How to merge rows based on some ID field? Original Table New Table ID | Field1 | Field2 ID | Field1 | Field2 -----|------- |-------- -------|--------|------- A 5 A 5 10 A 10 B 1 3 B 1 C 4 150 B 3 C 4 C 150 I want to fill a given cell value based on value in a group identified by some ID field. That is, I want to aggregate table and use non empty value in each column as aggregation function. 回答1: I think a simpler solution would be to use: 1° The feature "Edit Cells / Blank Down" on your ID