Browse Source

[data][xs]: move the data to `/data/` dir.

master
anuveyatsu 4 years ago
parent
commit
6389e94d6c
3 changed files with 3 additions and 3 deletions
  1. +0
    -0
      data/time-series-19-covid-combined.csv
  2. +1
    -1
      datapackage.json
  3. +2
    -2
      process.py

time-series-19-covid-combined.csv → data/time-series-19-covid-combined.csv View File


+ 1
- 1
datapackage.json View File

@ -20,7 +20,7 @@
"format": "csv", "format": "csv",
"hash": "7b65c350a6e621e770bdce075df8b657", "hash": "7b65c350a6e621e770bdce075df8b657",
"name": "time-series-19-covid-combined", "name": "time-series-19-covid-combined",
"path": "time-series-19-covid-combined.csv",
"path": "data/time-series-19-covid-combined.csv",
"profile": "tabular-data-resource", "profile": "tabular-data-resource",
"schema": { "schema": {
"fields": [ "fields": [


+ 2
- 2
process.py View File

@ -1,4 +1,4 @@
from dataflows import Flow, load, unpivot, find_replace, set_type, dump_to_path, update_package, update_resource, join, add_computed_field, delete_fields
from dataflows import Flow, load, unpivot, find_replace, set_type, dump_to_path, update_package, update_resource, join, join_with_self, add_computed_field, delete_fields, checkpoint, duplicate
BASE_URL = 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/' BASE_URL = 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/'
CONFIRMED = 'time_series_19-covid-Confirmed.csv' CONFIRMED = 'time_series_19-covid-Confirmed.csv'
@ -57,7 +57,7 @@ Flow(
with_='{Case}' with_='{Case}'
), ),
delete_fields(['Case']), delete_fields(['Case']),
update_resource('time_series_19-covid-Deaths', name='time-series-19-covid-combined', path='time-series-19-covid-combined.csv'),
update_resource('time_series_19-covid-Deaths', name='time-series-19-covid-combined', path='data/time-series-19-covid-combined.csv'),
update_package(name='covid-19', title='Novel Coronavirus 2019'), update_package(name='covid-19', title='Novel Coronavirus 2019'),
dump_to_path() dump_to_path()
).results()[0] ).results()[0]

Loading…
Cancel
Save