(self, request, engine, read_ext, df_ref)
| 1592 | tm.assert_frame_equal(df3, df1.iloc[:-1]) |
| 1593 | |
| 1594 | def test_sheet_name(self, request, engine, read_ext, df_ref): |
| 1595 | xfail_datetimes_with_pyxlsb(engine, request) |
| 1596 | |
| 1597 | expected = df_ref |
| 1598 | adjust_expected(expected, read_ext, engine) |
| 1599 | |
| 1600 | filename = "test1" |
| 1601 | sheet_name = "Sheet1" |
| 1602 | |
| 1603 | with pd.ExcelFile(filename + read_ext) as excel: |
| 1604 | df1_parse = excel.parse(sheet_name=sheet_name, index_col=0) # doc |
| 1605 | |
| 1606 | with pd.ExcelFile(filename + read_ext) as excel: |
| 1607 | df2_parse = excel.parse(index_col=0, sheet_name=sheet_name) |
| 1608 | |
| 1609 | tm.assert_frame_equal(df1_parse, expected) |
| 1610 | tm.assert_frame_equal(df2_parse, expected) |
| 1611 | |
| 1612 | @pytest.mark.parametrize( |
| 1613 | "sheet_name", |
nothing calls this directly
no test coverage detected