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.
BUG: _convert_and_box_cache raise ValueError: Tz-aware datetime.datetime cannot be converted to datetime64 unless utc=True #26097
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: _convert_and_box_cache raise ValueError: Tz-aware datetime.datetime cannot be converted to datetime64 unless utc=True #26097
Changes from all commits
655ec31
6a9856e
ffd9ecf
d6c584e
00f72e0
5ad9911
428cae0
7ed05f2
b60f1d5
3e2df79
3f0285e
d19c2cf
b1cf140
56db677
4f9ea36
c72a561
67a0c40
1e0d953
1942bbe
97e4548
342d7d0
12f9853
62e75f8
71ca9be
c35e124
d3412e2
3141cb6
ca200cd
1cc469e
137395f
2d8921b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
We need to apply
tz
to this result ifIndex(dt_array, name=name)
returns aDatetimeIndex
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.
@jreback @mroeschke After a close look at the Index constructor(
pandas/core/indexes/base.py
), I had a question aboutdtype
default value. The documentation says that it should beobject
, but actuallyNone
is used. What case is correct?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.
its default is
None
, however it will attempt to infer the type of thing passed, so you may need to explicity passdtype='object'
to force it to object here.