Browse Source

[flows][xs]: fix script to make the schema correct for both resources.

- worldwide resource had extra columns that is not needed, eg, country, province, lat, lon.
master
anuveyatsu 4 years ago
parent
commit
394a032cf2
1 changed files with 1 additions and 25 deletions
  1. +1
    -25
      process.py

+ 1
- 25
process.py View File

@ -58,7 +58,7 @@ Flow(
), ),
delete_fields(['Case']), delete_fields(['Case']),
update_resource('time_series_19-covid-Deaths', name='time-series-19-covid-combined', path='data/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_schema('worldwide-aggregated', fields=[
update_schema('time-series-19-covid-combined', fields=[
{ {
"format": "%Y-%m-%d", "format": "%Y-%m-%d",
"name": "Date", "name": "Date",
@ -139,30 +139,6 @@ Flow(
) )
), ),
update_schema('worldwide-aggregated', fields=[ update_schema('worldwide-aggregated', fields=[
{
"format": "default",
"name": "Province/State",
"type": "string"
},
{
"format": "default",
"name": "Country/Region",
"type": "string"
},
{
"decimalChar": ".",
"format": "default",
"groupChar": "",
"name": "Lat",
"type": "number"
},
{
"decimalChar": ".",
"format": "default",
"groupChar": "",
"name": "Long",
"type": "number"
},
{ {
"format": "%Y-%m-%d", "format": "%Y-%m-%d",
"name": "Date", "name": "Date",


Loading…
Cancel
Save