Skip to content

Commit 8ddb6cc

Browse files
fixup
1 parent 53c8f75 commit 8ddb6cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/groupby/test_categorical.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ def f(x):
134134
result = g.apply(f)
135135
expected = x.iloc[[0, 1]].copy()
136136
expected.index = Index([1, 2], name="person_id")
137-
# dtype = "str" if using_infer_string else object
138-
# expected["person_name"] = expected["person_name"].astype(dtype)
137+
dtype = "str" if using_infer_string else object
138+
expected["person_name"] = expected["person_name"].astype(dtype)
139139
tm.assert_frame_equal(result, expected)
140140

141141

0 commit comments

Comments
 (0)