Comments (6)
At least both index.csv & index.json differ from documentation.
I'll investigate. Are you seeing additional columns, or are there columns missing?
thanks for still keeping the old data.json
Backwards compatibility FTW!
Data being in arrays of ordered values forces me to see/write a schema to read the data. And every time the order of those values changes, data reading breaks. It would be more robust to provide a nested object or an array of objects.
This is a good point. I'm not happy with the current format either for JSON. It is currently a "stopgap" because several tables went over the 100MB limit of GitHub pages if the previous format is used, but we are looking to move the files to (versioned!) cloud storage very soon. Would you still prefer the record-based format if it meant that files are 2-3X bigger?
from data.
At least country name wasn't in the correct column, datacommons is missing from the README.
Didn't know there's such a limit. Personally I don't really care about the size, currently data.json is about 2.5 MB gzipped, not THAT huge. Of course someone else might want to think about slower (mobile) network users.
Another option would be to include column names & order in the response, similarly as in the CSV header row.
from data.
Didn't know there's such a limit. Personally I don't really care about the size, currently data.json is about 2.5 MB gzipped, not THAT huge. Of course someone else might want to think about slower (mobile) network users.
That's because data.csv
does not have any administrative level 2 data. The equivalent to that in the v2 files is master.csv
which is ~75MB and master.json
is already too big for GitHub pages which is why it's currently missing.
Another option would be to include column names & order in the response, similarly as in the CSV header row.
I thought that was already the case. Depending on column order is way too fragile and puts too much burden on the documentation. Let me see if we can find a better way to format the JSON files without adding too much overhead, but if it comes down to it we might just go back to the old format once we have cloud storage ready.
from data.
@jmullo I have changed the format of the JSON files. Can you please take a look and tell me if it's reasonable? If you have any suggestions or feedback, I'm open to that as well.
from data.
I think those are now easy enough to transform into whatever user wants:
const transformed = response.data.reduce((result, values) => {
const obj = Object.assign(...response.columns.map((key, index) => ({ [key]: values[index] })));
result[obj.key] = obj;
return result;
}, {});
from data.
Great to hear, I'll close this out for now.
FYI we have finally finalized the Cloud Storage setup and the new endpoint for the files is: https://storage.cloud.google.com/covid19-open-data/v2/ (we'll update the documentation shortly)
Sadly the old endpoint for v2 will have to go away since we can't upload many of the files due to GitHub limits, but the old v1 files will continue to be updated.
Please beware that we renamed the master
table to main
in the new v2 endpoint :-)
from data.
Related Issues (20)
- Tests for pipelines? HOT 3
- Omitted region in Polish data HOT 3
- Latest-data includes all data HOT 2
- I have changed the site address. HOT 6
- Is the data considered to be transactional? HOT 5
- 404 for https://open-covid-19.github.io/data/data.json HOT 1
- Machine-readable schema HOT 2
- @jmullo consider switching to the new file URL paths HOT 1
- @OmarJay1 consider switching to the new file URL paths HOT 2
- Columbia epidemiology data has bad date values. HOT 3
- Switzerland has incorrect epidemiological data. HOT 2
- Metadata Update HOT 1
- Missing state/province information for India HOT 1
- Missing subnational data on the confirmed cases for France HOT 2
- Bad data quality South America HOT 5
- Using your data for my website – thanks! HOT 2
- new epidemiology csv and old data.csv files both only showing philippines data HOT 2
- Too few countries have country-wide recovered counts
- Latest-Data almost empty HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data.