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

Better TimeDelta display #266

Open
1 task done
paddymul opened this issue Apr 2, 2024 · 0 comments
Open
1 task done

Better TimeDelta display #266

paddymul opened this issue Apr 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@paddymul
Copy link
Owner

paddymul commented Apr 2, 2024

Checks

  • I have checked that this enhancement has not already been requested

How would you categorize this request. You can select multiple if not sure

Display (is this related to visual display of a value)

Enhancement Description

TimeDelta's are displayed in a very hard to interpret manner currently.
Screenshot 2024-04-02 at 8 27 39 AM

The default serialization converts TimeDelta's to strings like P0DT0H1M19.307S

the default pandas display looks like this
Screenshot 2024-04-02 at 8 30 30 AM

00:01:29.990000
00:01:30.248000

That is also a poor display.

Ideally I want a formatter that would display the above two values as

1:29.99
1:30.24

I also would want the formater to be able to elide 0's

so if you had larger deltas,
15:12.22
03:08.78
is less readable than

15:12.22
3: 8.78

Pseudo Code Implementation

There should be a special timedelta renderer that reads the arrow data types and renders those. There are two many possible ways to serialize timedeltas, I'd rather deal with a thought out standard.

Prior Art

N/A

@paddymul paddymul added the enhancement New feature or request label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant