-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Fix interchange/plotting/groupby test warnings #48159
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
Changes from 7 commits
3e8b0da
0562163
f7d6b19
b60fb43
f8d8c31
20d76d3
2f3afef
ec517f8
3b8c5e8
d4865c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -1590,11 +1590,11 @@ def test_corrwith_with_1_axis(): | |||||||
tm.assert_series_equal(result, expected) | ||||||||
|
||||||||
|
||||||||
@pytest.mark.filterwarnings("ignore:The 'mad' method.*:FutureWarning") | ||||||||
@pytest.mark.filterwarnings("ignore:.* is deprecated:FutureWarning") | ||||||||
def test_multiindex_group_all_columns_when_empty(groupby_func): | ||||||||
# GH 32464 | ||||||||
df = DataFrame({"a": [], "b": [], "c": []}).set_index(["a", "b", "c"]) | ||||||||
gb = df.groupby(["a", "b", "c"]) | ||||||||
gb = df.groupby(["a", "b", "c"], group_keys=False) | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These warnings should only be generated when using pandas/pandas/core/groupby/groupby.py Lines 1042 to 1044 in a138d01
we could pass There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added
and still get
Ignoring the warnings at this line also still raises this warnings for idxmin/idxmax so that must take a different code path? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh, that's right; they are listed in common_apply_allowlist but then also defined on The same can be done with idxmin/max on DataFrameGroupBy. |
||||||||
method = getattr(gb, groupby_func) | ||||||||
args = get_groupby_method_args(groupby_func, df) | ||||||||
|
||||||||
|
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.
groupby tests have a
sort
fixture