Repository navigation
Conversation
seberg
left a comment
There was a problem hiding this comment.
Thanks, let's hope that this doesn't cause pain due to the default construction, but I'll guess it shouldn't be too bad.
|
Thank you for the review! |
|
Ah, thanks, sorry I missed that you didn't warn it because it was NaT and it is a bit less important. Since I think we warn almost everywhere else, maybe we might as well try it? I would think the old release note sufficiently captures things, but either way is fine. |
|
@seberg |
seberg
left a comment
There was a problem hiding this comment.
Thanks @riku-sakamoto, let's try this.
If this makes the deprecation worse for downstream, at least around NaT scalar creation where generic units make a bit more sense let us know.
(But since we didn't make an exception for 0 timedelta right now either, I think, this does seem reasonable to me.)
|
@seberg I think the example of |
PR summary
Closes #31103.
np.timedelta()np.datetime()np.datetime("NaT")AI Disclosure
No AI tools are used.