Skip to content

REF: cosmetic differences between DTA/TDA/PA comparison methods #30720

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 1 commit into from
Jan 6, 2020

Conversation

jbrockmendel
Copy link
Member

There are 2 remaining non-cosmetic differences between these methods remaining, which will be the subjects of upcoming PRs. Once those are addressed, we'll be able to de-duplicate the methods completely.

@@ -172,6 +177,9 @@ class TimedeltaArray(dtl.DatetimeLikeArrayMixin, dtl.TimelikeOps):

_typ = "timedeltaarray"
_scalar_type = Timedelta
_recognized_scalars = (timedelta, np.timedelta64, Tick)
Copy link
Contributor

Choose a reason for hiding this comment

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

at some point can u add some comments for each of the properties / methods here (and in all the subclasses)

eg it seems obvious was _is_recognized_scalar is now in this PR but best to have some comments

Copy link
Member Author

Choose a reason for hiding this comment

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

will comment in the next pass

@gfyoung gfyoung added Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff Refactor Internal refactoring of code Datetime Datetime data dtype labels Jan 6, 2020
@jreback jreback added this to the 1.0 milestone Jan 6, 2020
@jreback jreback merged commit 72db40e into pandas-dev:master Jan 6, 2020
@jreback
Copy link
Contributor

jreback commented Jan 6, 2020

thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the ref-cmps-cosmetic branch January 6, 2020 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff Datetime Datetime data dtype Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants