Skip to content

REF: share comparison methods for DTA/TDA/PA #30751

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 2 commits into from
Jan 6, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

Copy link
Member

@WillAyd WillAyd 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 at a glance


from pandas.tseries import frequencies
from pandas.tseries.offsets import DateOffset, Tick

from .base import ExtensionArray, ExtensionOpsMixin


def _datetimelike_array_cmp(cls, op):
Copy link
Member

Choose a reason for hiding this comment

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

This isn't an exact copy of dt_array_cmp right? If not can you help point out where integrates from period / td methods?

Copy link
Member Author

Choose a reason for hiding this comment

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

i put some comments in when moving this, are there specific parts that arent clear?

@WillAyd WillAyd added the Clean label Jan 6, 2020
@jreback jreback added this to the 1.0 milestone Jan 6, 2020
@jreback jreback merged commit 6b3df29 into pandas-dev:master Jan 6, 2020
@jreback
Copy link
Contributor

jreback commented Jan 6, 2020

thanks @jbrockmendel

@WillAyd this was one of the goals of the last series of PRs that @jbrockmendel did, to make identical code in the subclasses. (and now this consolidates it).

@WillAyd
Copy link
Member

WillAyd commented Jan 6, 2020

Yep makes sense

@jbrockmendel jbrockmendel deleted the ref-compatible2 branch January 7, 2020 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants