-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REF: remove always-UTC arg from tz_convert, tz_convert_single #35154
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
Conversation
* REF: dont consolidate in BlockManager.equals * doctest fixup * Remove Block.equals * simplify, comments
pandas/_libs/tslibs/tzconversion.pyx
Outdated
|
||
|
||
def tz_convert(int64_t[:] vals, tzinfo tz1, tzinfo tz2): | ||
def tz_convert(int64_t[:] vals, tzinfo tz): |
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.
Could we rename this tz_convert_from_utc
to make the intention clear?
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.
sure i guess
pandas/_libs/tslibs/tzconversion.pyx
Outdated
""" | ||
Convert the val (in i8) from timezone1 to timezone2 | ||
Convert the val (in i8) from UTC to tz | ||
|
||
This is a single timezone version of tz_convert |
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.
is this still required?
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.
updated
pandas/_libs/tslibs/tzconversion.pyx
Outdated
return np.array(converted, dtype=np.int64) | ||
|
||
|
||
@cython.boundscheck(False) | ||
@cython.wraparound(False) | ||
cdef int64_t[:] _tz_convert_one_way(int64_t[:] vals, tzinfo tz, bint to_utc): | ||
cdef int64_t[:] _tz_convert_one_way(int64_t[:] vals, tzinfo tz): |
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.
let's rename this too
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.
updated+green
thanks @jbrockmendel |
No description provided.