Skip to content

Commit 24ede0d

Browse files
committed
adjust another test
1 parent 13d73f0 commit 24ede0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/groupby/test_groupby.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def test_as_index_select_column():
517517
lambda x: x.cumsum()
518518
)
519519
expected = Series(
520-
[2, 6, 6], name="B", index=MultiIndex.from_tuples([(0, 0), (0, 1), (1, 2)])
520+
[2, 6, 6], name="B", index=MultiIndex.from_arrays([[0, 0, 1], RangeIndex(3)])
521521
)
522522
tm.assert_series_equal(result, expected)
523523

@@ -826,7 +826,7 @@ def test_groupby_level_mapper(multiindex_dataframe_random_data):
826826
def test_groupby_level_nonmulti():
827827
# GH 1313, GH 13901
828828
s = Series([1, 2, 3, 10, 4, 5, 20, 6], Index([1, 2, 3, 1, 4, 5, 2, 6], name="foo"))
829-
expected = Series([11, 22, 3, 4, 5, 6], Index(range(1, 7), name="foo"))
829+
expected = Series([11, 22, 3, 4, 5, 6], Index(list(range(1, 7)), name="foo"))
830830

831831
result = s.groupby(level=0).sum()
832832
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)