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

ENH: Add support for more units in pandas.Timedelta #37301

Closed
rohan-gt opened this issue Oct 21, 2020 · 2 comments
Closed

ENH: Add support for more units in pandas.Timedelta #37301

rohan-gt opened this issue Oct 21, 2020 · 2 comments
Labels
Enhancement Timedelta Timedelta data type

Comments

@rohan-gt
Copy link

Currently pandas.Timedelta only support units upto weeks. Can it be extended to months, quarters, years etc.?

@rohan-gt rohan-gt added Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 21, 2020
@jorisvandenbossche
Copy link
Member

In pandas, Timedelta represents an exact time span. And larger units like months or years cannot be generally represented by a fixed number of seconds (or nanoseconds).

@jreback
Copy link
Contributor

jreback commented Oct 21, 2020

see #36838 for why this is going away

@jreback jreback added Timedelta Timedelta data type and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 21, 2020
@jreback jreback added this to the No action milestone Oct 21, 2020
@jreback jreback closed this as completed Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Timedelta Timedelta data type
Projects
None yet
Development

No branches or pull requests

3 participants