Scoda openrefine-directordata

Post on 27-Jan-2015

179 views 4 download

Tags:

description

 

transcript

Grabbing Director Data

forEach(value.parseJson()['results']['company']['officers'], v, [v.officer.id, v.officer.name, v.officer.position, v.officer.start_date, v.officer.end_date].join('::')).join('||')

32866743::SIMON ALAN CONSTANT-

GLEMAS::director::2010-04-07::null||32866744::KARIN

JACQUELINE HAWKINS::director::2006-01-17::2012-02-22||

32866745::ANDREW WILLIAM LONGDEN::director::2003-

11-03::null||…

(It would probably make sense to rename the newly created columns.)

Starting with the first row,Fill down will fill blank rowsin a column with the valueIn the preceding row…

(so we can fill down company names and IDcolumns for each corresponding director)

SchoolOfData.org