MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_rw_excel

Method test_rw_excel

tests/test_openpyxl.py:9–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7class TestPandasOpenPyXL(unittest.TestCase):
8
9 def test_rw_excel(self):
10 want = pd.DataFrame([[1, 10, 'a']], columns=['x', 'y', 'z'])
11 want.to_excel('./want.xlsx', index=False, engine="openpyxl")
12 got = pd.read_excel('./want.xlsx', engine="openpyxl")
13 assert_frame_equal(want, got)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected