Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ RUN pip install flashtext && \
pip install ipympl==0.7.0 && \
pip install pandarallel && \
pip install onnx && \
pip install tables && \
/tmp/clean-layer.sh

# Download base easyocr models.
Expand Down
13 changes: 13 additions & 0 deletions test_pytables.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import unittest

import pandas as pd
from pandas.testing import assert_frame_equal


class TestPandasPytables(unittest.TestCase):

def test_rw_hd5(self):
want = pd.DataFrame([[1, 1.0, 'a']], columns=['x', 'y', 'z'])
want.to_hdf('./want.h5', 'data')
got = pd.read_hdf('./want.h5')
assert_frame_equal(want, got)