posit-dev / posit-dev/positron

R datetime / timestamp column summary stats formatting is not consistent

Open
#4,344 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: data explorer bug lang: r
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 9h
Merged PRs (30d)
195

Description

System details:

image
Positron and OS details:

Positron Dev Version: 2024.08.0 build 0
Code - OSS Version: 1.91.0
Commit: Unknown
Date: Unknown
Electron: 29.4.0
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0

Interpreter details:

R 4.4.1

Describe the issue:

The formatting of R datetime / timestamp column summary stats is not consistent.

image

Steps to reproduce the issue:

  1. Clone the qa-example-content repo.
  2. Execute library(arrow)
  3. Execute arrow100x100 <- read_parquet('/paht/qa-example-content/data-files/100x100/100x100.parquet')
  4. Expand columns 13-17 to match the above screenshot.
  5. Notice that there are formatting issues where the median value has more precision than the mean, min, and max values in some cases. This results in poor alignment of the column summary stats.

Expected or desired behavior:

Things should look like column 15. The median, mean, min, and max values should line up.

For reference, here's screenshot of Polars displaying the same data.

image

Were there any error messages in the UI, Output panel, or Developer Tools console?

No.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the qa-example-content repository, the 100x100.parquet file, and R 4.4.1, then inspect the summary-stat display for columns 13–17. Done means the median, mean, minimum, and maximum values use consistent precision and line up like column 15 and the Polars reference.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.