Skip to content

Commit 81596e7

Browse files
committed
BUG: Modify the test function.
1 parent 4b1b9b8 commit 81596e7

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

pandas/tests/io/test_parquet.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,20 +1472,12 @@ def test_invalid_dtype_backend(self, engine):
14721472
def test_bool_multiIndex(self, tmp_path, pa):
14731473
# GH 60508
14741474
df = pd.DataFrame(
1475-
[
1476-
[1, 2],
1477-
[4, 5],
1478-
],
1479-
columns=pd.MultiIndex.from_tuples(
1480-
[
1481-
(True, 'B'),
1482-
(False, 'C'),
1483-
]
1484-
)
1475+
[[1, 2], [4, 5]],
1476+
columns=pd.MultiIndex.from_tuples([(True, 'B'), (False, 'C')]),
14851477
)
14861478
df.to_parquet(
14871479
path=tmp_path,
14881480
engine=pa,
14891481
)
1490-
result = pd.read_parquet(tmp_path, engine=pa)
1482+
result = read_parquet(tmp_path, engine=pa)
14911483
tm.assert_frame_equal(result, df)

0 commit comments

Comments
 (0)