-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TestPeriodIndex.test_resample_empty_dataframe is failed when I pass kwargs to Resampler._groupby_and_aggregate #22364
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
I investigated Let me know if it's acceptable solution. |
22060d0
to
793adcc
Compare
Codecov Report
@@ Coverage Diff @@
## master #22364 +/- ##
==========================================
+ Coverage 92.05% 92.05% +<.01%
==========================================
Files 169 169
Lines 50709 50714 +5
==========================================
+ Hits 46679 46684 +5
Misses 4030 4030
Continue to review full report at Codecov.
|
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.
This needs tests (should be created first)
After adding |
Hmm not sure I completely follow - was this test failing before? |
This test is failed using following changes.
|
How is this visible from the end user perspective? The test case you provided works fine on master so asserting that it continues to work doesn't measure much. However this is visible to an end user you should set up a test case to cover that |
A separate PR is fine. Whatever you were planning to xfail in the other PR should be included as a test here |
There is already test that covers new changes: |
follow up ^. It would be more explicit |
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.
return self._cython_agg_general('var', **kwargs) | ||
try: | ||
return self._cython_agg_general('var', **kwargs) | ||
except Exception: |
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.
can you make this exception more specific
git diff upstream/master -u -- "*.py" | flake8 --diff
test_resample.py::TestPeriodIndex::test_resample_empty_dataframe
triggers new changes