Skip to content

BUG: Timedelta repr doesn't show nano #27134

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

Closed
ghost opened this issue Jun 29, 2019 · 1 comment
Closed

BUG: Timedelta repr doesn't show nano #27134

ghost opened this issue Jun 29, 2019 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request

Comments

@ghost
Copy link

ghost commented Jun 29, 2019

xref #9309, though that's about consistency, not just missing info.

In [7]: pd.Timedelta(nanoseconds=1)
Out[7]: Timedelta('0 days 00:00:00.000000')

In [8]: pd.Timestamp("2000-01-01")-pd.Timedelta(nanoseconds=1)
Out[8]: Timestamp('1999-12-31 23:59:59.999999999')

@jorisvandenbossche, recall we discussed using "roles" for repr? this might be a good use case, considering #9309 (comment).

@jorisvandenbossche
Copy link
Member

Closing as a duplicate, and renamed #9309 to make it clear that it is about timedelta no showing nanoseconds

recall we discussed using "roles" for repr? this might be a good use case, considering #9309 (comment).

Yes, although here it is more related to the fact that for Series/Index we need to define the resolution for the full series, not per formatting the individual scalars (which is already what is happening right now, but it would be good to generalize this for EAs).

@jorisvandenbossche jorisvandenbossche added the Duplicate Report Duplicate issue or pull request label Jun 30, 2019
@jorisvandenbossche jorisvandenbossche modified the milestones: 0.25.0, No action Jun 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

1 participant