-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
BUG: fix+test DTA/TDA/PA add/sub Index #27726
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
Conversation
jreback
left a comment
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.
style comment in the test, otherwise lgtm (can do in a followup if you want), lmk.
| def test_dta_add_sub_index(self, tz_naive_fixture): | ||
| # Check that DatetimeArray defers to Index classes | ||
| dti = date_range("20130101", periods=3, tz=tz_naive_fixture) | ||
| dta = dti._data |
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.
use .array
| def test_parr_add_sub_index(self): | ||
| # Check that PeriodArray defers to Index on arithmetic ops | ||
| pi = pd.period_range("2000-12-31", periods=3) | ||
| parr = pi._data |
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.
same
| def test_tda_add_sub_index(self): | ||
| # Check that TimedeltaArray defers to Index on arithmetic ops | ||
| tdi = TimedeltaIndex(["1 days", pd.NaT, "2 days"]) | ||
| tda = tdi._data |
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.
same
|
_data -> array edits made |
|
lgtm ping on green. |
|
ping |
|
thanks! |
black pandasgit diff upstream/master -u -- "*.py" | flake8 --diffLooking forward to doing a couple of test-cleanup passes.