question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dashboard CSV data provide counts with decimal fractions

See original GitHub issue

Where 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

  1. Open https://www.coronawarn.app/en/analysis/ in web browser
  2. Click on “Export all data”
  3. Extract CWA_dashboard_data_yyyy-mm-dd.csv from cwa_all_data.zip
  4. Open CWA_dashboard_data_yyyy-mm-dd.csv with text editor
  5. Note the first line (containing the field names) starting with update_timestamp,effective_date,infections_published_daily,tests_total_cumulated,
  6. 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 integer 51301
  • tests_total_cumulated is incorrectly transmitted as a real number 71762776.0 with a decimal place. It should be 71762776 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:open
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
HelTobcommented, Apr 26, 2022

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

1reaction
HelTobcommented, Mar 11, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found