We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53c8f75 commit 8ddb6ccCopy full SHA for 8ddb6cc
pandas/tests/groupby/test_categorical.py
@@ -134,8 +134,8 @@ def f(x):
134
result = g.apply(f)
135
expected = x.iloc[[0, 1]].copy()
136
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)
+ dtype = "str" if using_infer_string else object
+ expected["person_name"] = expected["person_name"].astype(dtype)
139
tm.assert_frame_equal(result, expected)
140
141
0 commit comments