--
You received this message because you are subscribed to the Google Groups "OpenRefine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrefine+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
my_list = ["name1"]
col_to_delete = []result = []for el in row['columnNames']: if el not in my_list: col_to_delete.append(el)
for el in col_to_delete: result.append(""" { "op": "core/column-removal", "description": "Remove column %s", "columnName": "%s" }""" % (el, el))
return "[" + ",\n".join(result) + "]"
[
{
"op": "core/column-reorder",
"description": "Reorder columns",
"columnNames": [
"friend",
"address"
]
}
]
--
You received this message because you are subscribed to the Google Groups "OpenRefine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrefine+unsubscribe@googlegroups.com.