Skip to content

Commit cf0536c

Browse files
committed
Update other tests using pivot_table
1 parent ea844fc commit cf0536c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/tests/frame/methods/test_drop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def test_drop_multiindex_not_lexsorted(self):
172172
lexsorted_mi = MultiIndex.from_tuples(
173173
[("a", ""), ("b1", "c1"), ("b2", "c2")], names=["b", "c"]
174174
)
175-
lexsorted_df = DataFrame([[1, 3, 4]], columns=lexsorted_mi)
175+
lexsorted_df = DataFrame([[1, 3.0, 4.0]], columns=lexsorted_mi)
176176
assert lexsorted_df.columns._is_lexsorted()
177177

178178
# define the non-lexsorted version

pandas/tests/groupby/test_groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@ def test_groupby_multiindex_not_lexsorted():
17761776
lexsorted_mi = MultiIndex.from_tuples(
17771777
[("a", ""), ("b1", "c1"), ("b2", "c2")], names=["b", "c"]
17781778
)
1779-
lexsorted_df = DataFrame([[1, 3, 4]], columns=lexsorted_mi)
1779+
lexsorted_df = DataFrame([[1, 3.0, 4.0]], columns=lexsorted_mi)
17801780
assert lexsorted_df.columns._is_lexsorted()
17811781

17821782
# define the non-lexsorted version

0 commit comments

Comments
 (0)