Skip to content

Commit f7baeac

Browse files
committed
BUG-46369: Update other impacted tests
1 parent 02a13ad commit f7baeac

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
@@ -1493,10 +1493,5 @@ def test_null_group_str_transformer_series(request, dropna, transformation_func)
14931493
msg = f"{transformation_func} is deprecated"
14941494
with tm.assert_produces_warning(warn, match=msg):
14951495
result = gb.transform(transformation_func, *args)
1496-
if dropna and transformation_func == "fillna":
1497-
# GH#46369 - result name is the group; remove this block when fixed.
1498-
tm.assert_equal(result, expected, check_names=False)
1499-
# This should be None
1500-
assert result.name == 1.0
1501-
else:
1502-
tm.assert_equal(result, expected)
1496+
1497+
tm.assert_equal(result, expected)

0 commit comments

Comments
 (0)