Repository navigation
BUG: fix repr for generic datetime - #11841
Closed
tylerjereddy wants to merge 1 commit into
Closed
tylerjereddy wants to merge 1 commit into
tylerjereddy wants to merge 1 commit into
Conversation
* NaT is now used as the filler element for NumPy array reprs with generic datetime64 type; previously the repr would cause a crash
Contributor
Author
|
@eric-wieser Is this the behavior you had in mind? Should I bring it up on the mailing list? |
Member
|
Does this change the result of the following to not give an error? If so, that might lead to weird behavior for |
Contributor
Author
|
@eric-wieser Yes, The timedelta view will restore the original
Are you proposing to raise an error or warning on the view? |
Contributor
Author
|
No clear route forward / evidence of priority -- so closing my own PR here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #11752.
Some discussion may be needed since
git bisectdidn't reveal a commit where one of Eric's cases didn't raise anExceptionof some sort.For example, with the changes here, instead of
reprcrashing we getNaTas filler:As a reference: