-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
tslibs TODO list #17652
Comments
as an FYI, am happy to have you make 1 issue that you create (e.g. this one), that you can then put ToDO items and then check them off. |
FYI most of these are solved locally and are slowly getting pushed back upstream. The main ones on which I need input are a) the tz_convert vs tz_convert_single issue (see discussion in #17734), b) the question about |
for |
@jbrockmendel for the pyx LINT to-do do you need help updating the pyx files? From what I can tell most of the errors there would be simple like Relatively minor but having worked on some pyx files recently including those in Happy to knock out some of those pyx files if you need help. Let me know. |
I think the E225 errors are for cython pointer arguments |
My mistake - I just saw all of those errors and assumed they were legitimate, but now I see the caveat. I'm not aware of a cython-aware linter and doubt there is one. |
Can't claim to have done this before but one of the answers in the below SO article makes me think there's a way to modify https://stackoverflow.com/questions/25535599/options-for-linting-cython-code |
Everything actionable has either been addressed or has its own issue. closing. |
Misc:
fold
kwarg. ATM the kwarg exists but is ignored.Refactoring:
_nat_strings
and_checknull_with_nat
to a single canonical locationOutOfBoundsDatetimeError
in a dependency-free util-like module. (Implement npy_dtime.pyx #17805)parse_datetime_string
andparse_time_string
update not redundant.tslibs.parsing
cython version of compat for string_types, StringIOCheck if these need to be exposed or (in some cases) need to exist:
_Period._comparables
(closed by Cross off a few tslibs-TODOs #18443)Timedelta._validate_ops_compat
Timedelta._binary_op_method_timedeltalike
Timedelta._op_unary_method
update Won't fix/correct-as-isTimedelta._round
update Won't fix/correct-as-isTimestamp._round
update Won't fix/correct-as-is_Timestamp._get_field
_Timestamp._get_named_field
update Won't fix/correct-as-is_Timestamp._get_start_end_field
lib.arrmap
(closed by Cross off a few tslibs-TODOs #18443)_libs.src.numpy_helper.infer_type
TZ Conversion:
tslib._localize_tso
appears to make a handful of unnecessary calls, see localize_tso unnecessary calls? #17944tslib._localize_tso
argument obj will always haveobj.tzinfo == None
? This is the case in all existing usages.Offsets:
normalize
attr should be relevant for__eq__
BUG: offsets normalize and __eq__ #17689 (closed by fix DateOffset eq to depend on normalize attr #21404)# I suspect this is wrong for *all* of them.
inBQuarterBegin
.Timestamp Methods (moved from #17876)-
... if and only if is_timestamp is updated to recognized subclasses._assert_tzawareness_compat doesn't actually return the declared return typeupdate but declaring it as void leads to build-time error because that mis-matches theexcept? -1
Timestamp.timestamp
asround(self.value / 1e9, 6)
for consistency withdatetime
method. Are we sure we want to drop nanosecond information? Might it be better to updateutcfromtimestamp
for round-trip internal consistency?Follow-Up Cleanup:
_get_rule_month
Possibly removeupdate unique_deltas does appear to be more performant than the alternatives.unique_deltas
, asv etc Tslibs resolution #18034 (comment)#noqa
d unused importsDecision Making
NaT
not subclassdatetime
?datetime.date
withTimestamp
? Or possible treat it asPeriod(..., freq="D")
? COMPAT: datetime.date comparisons with datetime64[ns] #17965Issues:
to_timedelta
overflows without raising in some very particular cases #17037 is handled by BUG: overflow on Timedelta construction & arithmetic now raises #17640 Update It is not.Questions:
pd.Period('2017').day
beNone
instead of 31? high-freq properties of low-freq Periods #18378Unsorted
__sub__
with datetimelike check for datetime+period addition #18524 (comment)tz
arg in WIP: Pass missing tz arg in _parsed_string_to_bounds #18471.tzinfo1 == tzinfo2
as that may be misleading for pytzLow Priority:
seen_datetime
consistently in array_to_datetime array_to_datetime set seen_datetime consistently #18554The text was updated successfully, but these errors were encountered: