Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up downloaded data tables #4595

Open
sophiamersmann opened this issue Feb 26, 2025 · 1 comment
Open

Clean up downloaded data tables #4595

sophiamersmann opened this issue Feb 26, 2025 · 1 comment

Comments

@sophiamersmann
Copy link
Member

Description

If a chart has tolerance, then the filtered data table download has the columns time and year, which is a bit confusing.

Expected behaviour

Either transform the table to have a single time/year column, or improve the column names and documentation.

Steps to reproduce

  1. Go to https://ourworldindata.org/grapher/economic-inequality-gini-index
  2. Note that almost every country uses a value from a different year
  3. Open the download modal and download the filtered data

Additional context

I don't think we prettify the tables for download in any way, so there might be similar gotchas for different charts

@marcelgerber
Copy link
Member

Some of these columns are indeed quite confusing, and it's also odd that the Year and Code columns are only present for some rows, not all.

We should post-process the table before we convert it to a csv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants