Skip to content

Commit 17808bf

Browse files
committed
Solving the errors
1 parent 270549a commit 17808bf

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

pandas/tests/groupby/aggregate/test_aggregate.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
from pandas import (
1818
DataFrame,
1919
Index,
20-
Int64Index,
2120
MultiIndex,
2221
Series,
23-
Timedelta,
2422
concat,
2523
)
2624
import pandas._testing as tm

pandas/tests/groupby/test_function.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
from pandas import (
1111
DataFrame,
1212
Index,
13+
Int64Index,
1314
MultiIndex,
1415
Series,
16+
Timedelta,
1517
Timestamp,
1618
date_range,
1719
)
@@ -275,12 +277,10 @@ def test_groupby_aggregation_non_numeric_dtype():
275277
index=Index(["M", "W"], dtype="object", name="MW"),
276278
)
277279

278-
279280
gb = df.groupby(by=["MW"])
280281
result = gb.sum()
281282
tm.assert_frame_equal(result, expected)
282283

283-
284284
def test_groupby_aggregation_multi_non_numeric_dtype():
285285
# GH #42395
286286
df = DataFrame(
@@ -299,12 +299,10 @@ def test_groupby_aggregation_multi_non_numeric_dtype():
299299
index=Int64Index([0, 1], dtype="int64", name="x"),
300300
)
301301

302-
303302
gb = df.groupby(by=["x"])
304303
result = gb.sum()
305304
tm.assert_frame_equal(result, expected)
306305

307-
308306
def test_groupby_aggregation_numeric_with_non_numeric_dtype():
309307
# GH #43108
310308
df = DataFrame(
@@ -325,7 +323,6 @@ def test_groupby_aggregation_numeric_with_non_numeric_dtype():
325323
tm.assert_frame_equal(result, expected)
326324

327325

328-
329326
class TestGroupByNonCythonPaths:
330327
# GH#5610 non-cython calls should not include the grouper
331328
# Tests for code not expected to go through cython paths.

0 commit comments

Comments
 (0)