Commit 82416423 authored by Christophe Benz's avatar Christophe Benz

Follow data model about column names

parent 6c30b813
Pipeline #3328 passed with stage
in 27 seconds
......@@ -253,7 +253,7 @@ def main():
dataset_json.setdefault('series', []).append(series_json)
with open(os.path.join(dataset_dir, '{}.tsv'.format(series_code)), 'w', encoding='utf-8') as tsv_file:
tsv_file.write('{}\t{}\n'.format('YEAR', entry['UNIT']))
for period, value in islice(entry.items(), 5, None):
tsv_file.write('{}\t{}\n'.format(period, value))
write_json_file(os.path.join(dataset_dir, 'dataset.json'), dataset_json)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment