Skip to content

CLN: remove DatetimeLikeArray._add_delta #32799

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 3 commits into from
Mar 19, 2020

Conversation

jbrockmendel
Copy link
Member

Ultimately we want to 1) avoid using _from_sequence (so we can make that stricter in what it accepts) and 2) be more careful about when we use freq="infer". Splitting up the cases handled by _add_delta will make this more feasible.

Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, ex a name


def _add_delta_tdi(self, other):
"""
Add a delta of a TimedeltaIndex
return the i8 result view

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, this name now looks confusing (because of the word delta), maybe

_add_timedeltaindex

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to add_timedelta_arraylike

@jreback jreback added Timedelta Timedelta data type Clean labels Mar 19, 2020
@jreback jreback added this to the 1.1 milestone Mar 19, 2020
@jreback jreback merged commit bb27407 into pandas-dev:master Mar 19, 2020
@jreback
Copy link
Contributor

jreback commented Mar 19, 2020

thanks. I think could type these functions pretty easily now :->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants