-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Merged
jreback
merged 31 commits into
pandas-dev:master
from
anmyachev:fix_bug_convert_and_box_cache
Jul 3, 2019
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
655ec31
fixed _convert_and_box_cache that raised ValueError: Tz-aware datetim…
anmyachev 6a9856e
Revert bandaid workaround
vnlitvinov ffd9ecf
Add test that fails only when to_datetime gets cache=True
vnlitvinov d6c584e
Fix to_datetime caching logic so test_to_datetime_offset passes
vnlitvinov 00f72e0
Fix flake8 issues
vnlitvinov 5ad9911
removed debugging stuff; 'name' is default argument now
anmyachev 428cae0
added 'whatsnew'
anmyachev 7ed05f2
Test that to_datetime produces equal result for cache on and off
vnlitvinov b60f1d5
fixed isort errors
anmyachev 3e2df79
Rework _box_if_needed into _box_as_indexlike
vnlitvinov 3f0285e
Clarify added tests intention
vnlitvinov d19c2cf
first using notations
anmyachev b1cf140
changed wildcard import in '/pandas/core/index.py' to explicit import
anmyachev 56db677
changed 'notations' -> 'annotations'
anmyachev 4f9ea36
fixed isort errors
anmyachev c72a561
rollback of a certain style for annotations
anmyachev 67a0c40
added 'Scalar' and 'DatetimeScalar' unions
anmyachev 1e0d953
added annotations for some arguments; changed formatting
anmyachev 1942bbe
using 'assert_almost_equal' now
anmyachev 97e4548
rerun CI tests
anmyachev 342d7d0
fixed problems found by review
anmyachev 12f9853
replaced '# noqa' statement for flake8 linter
anmyachev 62e75f8
removed 'Optional' using
anmyachev 71ca9be
using TypeVar for 'DatetimeScalar' definition
anmyachev c35e124
fixed isort error
anmyachev d3412e2
fixed bug: 'UTC' and 'Etc/GMT' should be the same
anmyachev 3141cb6
added comment about timezones
anmyachev ca200cd
removed 'UTC_EQ_STR', 'UTC_EQ'
anmyachev 1cc469e
removing extra stuff
anmyachev 137395f
fixed mypy errors
anmyachev 2d8921b
renamed arg in '_box_as_indexlike' func: tz -> utc
anmyachev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixed problems found by review
- Loading branch information
commit 342d7d0e36437750c18954e8ba4472b659acdbaf
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from datetime import datetime | ||
from pathlib import Path | ||
from typing import IO, AnyStr, TypeVar, Union | ||
|
||
|
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
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.
Uh oh!
There was an error while loading. Please reload this page.