-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
BUG: pytables with non-nano timedelta64 #63239
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
BUG: pytables with non-nano timedelta64 #63239
Conversation
jorisvandenbossche
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
The consequence is that a file written with 3.0 (with a timedelta column) won't be readable by older pandas versions?
(although right now if you write non-nanos, they just come back as wrong values)
Can you add a whatsnew note as you had in #55622?
pandas/core/computation/pytables.py
Outdated
| # TODO: other timedelta64 units? 2025-11-30 only | ||
| # test_append_with_timedelta gets here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could parametrize test_append_with_timedelta for the different units? (or is there already other coverage?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea, updated.
Correct.
Done. |
|
Thanks! |
doc/source/whatsnew/vX.X.X.rstfile if fixing a bug or adding a new feature.AGENTS.md.Surfaced by #63196, which currently xfails test_preserve_timedeltaindex_type. This implements a fix.