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

Method test_rw_hd5

test_pytables.py:9–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7class TestPandasPytables(unittest.TestCase):
8
9 def test_rw_hd5(self):
10 want = pd.DataFrame([[1, 1.0, 'a']], columns=['x', 'y', 'z'])
11 want.to_hdf('./want.h5', 'data')
12 got = pd.read_hdf('./want.h5')
13 assert_frame_equal(want, got)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected