-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Format] Define more generic Interval logical type #15623
Comments
Julien Le Dem / @julienledem:
References: |
Jacques Nadeau / @jacques-n: As far as timestamp/decimal, I'm not inclined to change. I think most of the processing engines and storage formats that we work with use epoch in either millis, micros or nanos. |
Wes McKinney / @wesm: In [9]: import pandas as pd
In [10]: ts = pd.Timedelta(1000, unit='s')
In [11]: ts
Out[11]: Timedelta('0 days 00:16:40')
In [12]: ts.seconds
Out[12]: 1000
In [13]: ts.asm8 # Internal representation
Out[13]: numpy.timedelta64(1000000000000,'ns') What do you think about this kind of data (it would share the same absolute time units as timestamp, basically)? |
Jacques Nadeau / @jacques-n: |
Wes McKinney / @wesm: |
Julien Le Dem / @julienledem: |
Julien Le Dem / @julienledem: |
Per discussion in e7e399d#commitcomment-18711366, we can create an
Interval
type with a unit to be more general.Reporter: Wes McKinney / @wesm
Assignee: Julien Le Dem / @julienledem
Related issues:
PRs and other links:
Note: This issue was originally created as ARROW-270. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: