-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Implement _is_utc in timezones #17419
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
Merged
Changes from 29 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
8304221
Implement _is_utc in timezones
jbrockmendel 82b1da7
Dont declare _is_utc in tslib
jbrockmendel a74e7fa
Remove unused imports
jbrockmendel b110f96
DOC: Cleaned references to pandas <v0.12 in docs (#17375)
topper-123 d8ea8f4
Remove unused _day and _month attrs (#17431)
jbrockmendel 42e5e4d
DOC: Clean-up references to v12 to v14 (both included) (#17420)
topper-123 870e6a4
BUG: Plotting Timedelta on y-axis #16953 (#17430)
s-weigand 07edd07
COMPAT: handle pyarrow deprecation of timestamps_to_ms in .from_panda…
jreback 708e4e6
DOC/TST: Add examples to MultiIndex.get_level_values + related change…
topper-123 b507379
Dont re-pin total_seconds as it is already implemented (#17432)
jbrockmendel 991af8f
BUG: Return local Timestamp.weekday_name attribute (#17354) (#17377)
mroeschke c877772
BUG: intersection of decreasing RangeIndexes (#17374)
toobaz f8ce1ad
Remove property that re-computed microsecond (#17331)
jbrockmendel 57c2d55
cleaned references to pandas v0.15 and v0.16 in docs (#17442)
topper-123 2638a20
BUG: revert collision warning (#17298)
deniederhut a5ee65e
cdef out dtype for _Timestamp._get_field (#17457)
mroeschke 69ca387
DOC: Add Timestamp, Period, Timedelta, and Interval to api.rst (#17424)
GuessWhoSamFoo c12062c
DOC: to_json (#17461)
majiang 2be1405
BUG: Index._searchsorted_monotonic(..., side='right') returns the lef…
jschendel aafa941
COMPAT: Pypy tweaks (#17351)
mattip 1c01a2b
Replace * imports with explicit imports; remove unused declared const…
jbrockmendel e0e837a
Removed Timedelta.is_populated and fixed spelling errors (#17469)
GuessWhoSamFoo 72da858
PERF: Implement get_freq_code in cython frequencies (#17422)
jbrockmendel b65f926
Merge branch 'master' into tslibs-timezones2
jbrockmendel 7f53450
Merge branch 'master' into tslibs-timezones2
jbrockmendel 68864b5
Merge branch 'master' of https://github.com/pandas-dev/pandas into ts…
jbrockmendel 6f19d50
Merge branch 'tslibs-timezones2' of https://github.com/jbrockmendel/p…
jbrockmendel 87482c2
whitespace cleanup
jbrockmendel 7985ee2
Remove extraneous depends from setup
jbrockmendel fb55a8c
Remove accidentally re-introduced dependency
jbrockmendel 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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
# cython: profile=False |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
# cython: profile=False | ||
|
||
cdef bint _is_utc(object tz) |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
# cython: profile=False | ||
|
||
# dateutil compat | ||
from dateutil.tz import tzutc as _dateutil_tzutc | ||
|
||
import pytz | ||
UTC = pytz.utc | ||
|
||
|
||
cdef inline bint _is_utc(object tz): | ||
return tz is UTC or isinstance(tz, _dateutil_tzutc) |
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.
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.
did you add this back? ( I agree it looks like it should be here, but what was failing to indicate that)
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 like a screwup I made while rebasing. Will remove momentarily.