Skip to content

Commit 4ec7ac4

Browse files
committed
Remove condition
1 parent 1337ccb commit 4ec7ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby/groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,7 @@ def _agg_py_fallback(
17271727
dtype = ser.dtype
17281728
if dtype == object:
17291729
res_values = res_values.astype(object, copy=False)
1730-
elif is_string_dtype(dtype) and how in ["min", "max"]:
1730+
elif is_string_dtype(dtype):
17311731
# mypy doesn't infer dtype is an ExtensionDtype
17321732
string_array_cls = dtype.construct_array_type() # type: ignore[union-attr]
17331733
res_values = string_array_cls._from_sequence(res_values, dtype=dtype)

0 commit comments

Comments
 (0)