-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
PERF: Improve Period hashing #13705
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
PERF: Improve Period hashing #13705
Conversation
@@ -2164,6 +2226,28 @@ def test_drop_duplicates_metadata(self): | |||
self.assert_index_equal(idx, result) | |||
self.assertEqual(idx.freq, result.freq) | |||
|
|||
def test_drop_duplicates(self): | |||
# to check Index/Series compat | |||
base = pd.period_range('2011-01-01', '2011-01-31', freq='D', |
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.
is this duplicated code with above?
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.
no, the code directly above intends to check metadata. others look similar are for datetime/timedelta. though we have index/series separated tests, I thinks it's good chance to check index/series compat.
i think this needs a rebase |
Current coverage is 84.54%@@ master #13705 diff @@
==========================================
Files 141 141
Lines 51161 51161
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 43252 43252
Misses 7909 7909
Partials 0 0
|
thanks! |
git diff upstream/master | flake8 --diff