We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7db602 commit 901f69fCopy full SHA for 901f69f
pandas/tests/io/excel/test_writers.py
@@ -1569,5 +1569,8 @@ def test_excel_round_trip_with_periodindex(merge_cells):
1569
1570
buffer.seek(0)
1571
result_df = pd.read_excel(buffer, index_col=[0, 1])
1572
+ result_df.index = result_df.index.set_levels(
1573
+ [result_df.index.levels[0].to_period("M"), result_df.index.levels[1]]
1574
+ )
1575
1576
tm.assert_frame_equal(df, result_df)
0 commit comments