Skip to content

Commit 9caa7a9

Browse files
committed
BUG-46369: Update other impacted tests
1 parent 0c79ef8 commit 9caa7a9

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

pandas/tests/groupby/test_value_counts.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,11 @@ def test_series_groupby_value_counts_on_categorical():
183183
),
184184
]
185185
),
186-
name=0,
187186
)
188187

189188
# Expected:
190189
# 0 a 1
191190
# b 0
192-
# Name: 0, dtype: int64
191+
# dtype: int64
193192

194193
tm.assert_series_equal(result, expected)

pandas/tests/groupby/transform/test_transform.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -1511,10 +1511,5 @@ def test_null_group_str_transformer_series(request, dropna, transformation_func)
15111511
msg = f"{transformation_func} is deprecated"
15121512
with tm.assert_produces_warning(warn, match=msg):
15131513
result = gb.transform(transformation_func, *args)
1514-
if dropna and transformation_func == "fillna":
1515-
# GH#46369 - result name is the group; remove this block when fixed.
1516-
tm.assert_equal(result, expected, check_names=False)
1517-
# This should be None
1518-
assert result.name == 1.0
1519-
else:
1520-
tm.assert_equal(result, expected)
1514+
1515+
tm.assert_equal(result, expected)

0 commit comments

Comments
 (0)