Skip to content

Commit d6edeff

Browse files
committed
Cleanup
1 parent 283eda9 commit d6edeff

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

pandas/core/groupby/ops.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -965,11 +965,6 @@ def agg_series(
965965
out = maybe_cast_pointwise_result(
966966
npvalues, obj.dtype, numeric_only=True, same_dtype=preserve_dtype
967967
)
968-
969-
# if isinstance(out.dtype, ArrowDtype) and pa.types.is_struct(
970-
# out.dtype.pyarrow_dtype
971-
# ):
972-
# out = npvalues
973968
else:
974969
out = npvalues
975970

@@ -981,7 +976,6 @@ def agg_series(
981976
out = maybe_cast_pointwise_result(npvalues, obj.dtype, numeric_only=True)
982977
else:
983978
out = npvalues
984-
985979
return out
986980

987981
@final

pandas/tests/groupby/aggregate/test_aggregate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ def test_agg_lambda_complex128_dtype_conversion():
18621862

18631863

18641864
def test_agg_lambda_numpy_uint64_to_pyarrow_dtype_conversion():
1865-
# GH#53030
1865+
# GH#59601
18661866
df = DataFrame(
18671867
{
18681868
"A": ["c1", "c2", "c3"],
@@ -1883,7 +1883,7 @@ def test_agg_lambda_numpy_uint64_to_pyarrow_dtype_conversion():
18831883

18841884
@td.skip_if_no("pyarrow")
18851885
def test_agg_lambda_pyarrow_struct_to_object_dtype_conversion():
1886-
# GH#53030
1886+
# GH#59601
18871887
import pyarrow as pa
18881888

18891889
df = DataFrame(

0 commit comments

Comments
 (0)