-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
CLN: assorted cleanups #29314
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
CLN: assorted cleanups #29314
Changes from all commits
a1da4cf
26fb16e
250d035
e1871ca
38d5d1b
aec1426
1d31843
f6ad22a
02c08cc
e84e145
05fe729
fee9f09
ed40c6c
9b97c33
1cd954f
f545feb
85400f6
37d0c0e
f4b45b1
a5154c4
e6284dd
366bef1
c27fdf0
5c2b43b
83c26a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -698,8 +698,7 @@ def generate_bins_dt64(ndarray[int64_t] values, const int64_t[:] binner, | |
|
||
@cython.boundscheck(False) | ||
@cython.wraparound(False) | ||
def get_level_sorter(const int64_t[:] label, | ||
const int64_t[:] starts): | ||
def get_level_sorter(const int64_t[:] label, const int64_t[:] starts): | ||
""" | ||
argsort for a single level of a multi-index, keeping the order of higher | ||
levels unchanged. `starts` points to starts of same-key indices w.r.t | ||
|
@@ -1677,6 +1676,7 @@ cpdef bint is_datetime64_array(ndarray values): | |
return validator.validate(values) | ||
|
||
|
||
# TODO: only non-here use is in test | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If so, I'm okay with removing in this PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Poor wording on my part. This function is used inside lib.pyx, but its only non-cython use in in tests. So the option is to make it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah okay. Thanks for clarifying that. |
||
def is_datetime_with_singletz_array(values: ndarray) -> bool: | ||
""" | ||
Check values have the same tzinfo attribute. | ||
|
@@ -1720,6 +1720,7 @@ cdef class AnyTimedeltaValidator(TimedeltaValidator): | |
return is_timedelta(value) | ||
|
||
|
||
# TODO: only non-here use is in test | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same |
||
cpdef bint is_timedelta_or_timedelta64_array(ndarray values): | ||
""" infer with timedeltas and/or nat/none """ | ||
cdef: | ||
|
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.
can you add a doc-string
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.
yes, next pass