posit-dev / posit-dev/positron
R datetime / timestamp column summary stats formatting is not consistent
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 195
Description
System details:
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.
Steps to reproduce the issue:
- Clone the
qa-example-contentrepo. - Execute
library(arrow) - Execute
arrow100x100 <- read_parquet('/paht/qa-example-content/data-files/100x100/100x100.parquet') - Expand columns 13-17 to match the above screenshot.
- 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.
Were there any error messages in the UI, Output panel, or Developer Tools console?
No.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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