Skip to content

Commit 6a32c83

Browse files
fix one more test
1 parent ddbc8ec commit 6a32c83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/tests/groupby/test_categorical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def test_apply(ordered):
325325
tm.assert_series_equal(result, expected)
326326

327327

328-
def test_observed(request, using_infer_string, observed):
328+
def test_observed(observed):
329329
# multiple groupers, don't re-expand the output space
330330
# of the grouper
331331
# gh-14942 (implement)

pandas/tests/groupby/test_timegrouper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_groupby_with_timegrouper(self, using_infer_string):
108108
unit=df.index.unit,
109109
)
110110
expected = DataFrame(
111-
{"Buyer": 0, "Quantity": 0},
111+
{"Buyer": "" if using_infer_string else 0, "Quantity": 0},
112112
index=exp_dti,
113113
)
114114
# Cast to object/str to avoid implicit cast when setting

0 commit comments

Comments
 (0)