Dashboard CSV data provide counts with decimal fractions
See original GitHub issueWhere to find the issue
https://www.coronawarn.app/en/analysis/ “Corona-Warn-App (CWA): Key performance indicators”
Describe the issue
All data values in exported data from the Corona-Warn-App (CWA): Key performance indicators page where the fields corresponds to a count of something, and which therefore can only be a whole number, are transmitted with a single decimal place. For example tests_total_cumulated
is exported as 71762776.0
instead of the integer value 71762776
.
Steps to reproduce
- Open https://www.coronawarn.app/en/analysis/ in web browser
- Click on “Export all data”
- Extract
CWA_dashboard_data_yyyy-mm-dd.csv
fromcwa_all_data.zip
- Open
CWA_dashboard_data_yyyy-mm-dd.csv
with text editor - Note the first line (containing the field names) starting with
update_timestamp,effective_date,infections_published_daily,tests_total_cumulated,
- Scroll down to the end of the file and note the start of the last full line e.g.
"2021-12-16T09:21:49,398",2021-12-15,51301,71762776.0
In the above example
infections_published_daily
is correctly an integer51301
tests_total_cumulated
is incorrectly transmitted as a real number71762776.0
with a decimal place. It should be71762776
without.0
at the end
Suggested change
Remove the decimal place from all of the fields which are counts. That is to say the data belonging to the following fields with names:
- *daily
- *cumulated
- *sum
should be transmitted with no decimal fraction.
Only average values with field names:
- *avg
should be permitted to have decimal fractions in the exported CSV files.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Decimals (Count) of records on Reporting dashboards
When there are few records on a dashboard count of records is showing decimal values which really makes no sense as count cannot...
Read more >Format Numbers and Null Values
Decimal Places: the number of decimal places to display. Negative Values: how negative values are displayed. Units: the number is displayed using the...
Read more >Fractions in Excel (Uses, Examples)
Fractions in Excel are a number format used to display the number as an actual fraction instead of decimal numbers. Excel Fraction formatting...
Read more >Format a number field - Amazon QuickSight
Use a decimal point to show the fractional part of the number, for example 1234.56. Show the number as an integer and use...
Read more >Does edgeR accept decimal / integer read counts for ...
Yes it does. All the edgeR analysis pipelines accept fractional counts. edgeR uses a continuous version of the negative binomial ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi Mike,
I am still in exchange with the responsible people and I have not forgotten about the issue.
As far as I know, it is complicated to remove the decimals because of the different conversion processes.
I’ll stay tuned and let you know if there are any further developments.
Best regards Tobias
Thank you very much for the suggestion. I have forwarded the issue and an adjustment will be made in the near future.
Best regards, Tobias