MCPcopy
hub / github.com/pandas-dev/pandas / test_sheet_name

Method test_sheet_name

pandas/tests/io/excel/test_readers.py:849–864  ·  view source on GitHub ↗
(self, request, read_ext, engine, df_ref)

Source from the content-addressed store, hash-verified

847 tm.assert_frame_equal(result, expected)
848
849 def test_sheet_name(self, request, read_ext, engine, df_ref):
850 xfail_datetimes_with_pyxlsb(engine, request)
851
852 filename = "test1"
853 sheet_name = "Sheet1"
854
855 expected = df_ref
856 adjust_expected(expected, read_ext, engine)
857
858 df1 = pd.read_excel(
859 filename + read_ext, sheet_name=sheet_name, index_col=0
860 ) # doc
861 df2 = pd.read_excel(filename + read_ext, index_col=0, sheet_name=sheet_name)
862
863 tm.assert_frame_equal(df1, expected)
864 tm.assert_frame_equal(df2, expected)
865
866 def test_excel_read_buffer(self, read_ext):
867 pth = "test1" + read_ext

Callers

nothing calls this directly

Calls 2

adjust_expectedFunction · 0.85

Tested by

no test coverage detected