Note that there are some explanatory texts on larger screens.

plurals
  1. POpandas HDFStore - how to reopen?
    primarykey
    data
    text
    <p>I created a file by using:</p> <pre><code>store = pd.HDFStore('/home/.../data.h5') </code></pre> <p>and stored some tables using:</p> <pre><code>store['firstSet'] = df1 store.close() </code></pre> <p>I closed down python and reopened in a fresh environment.</p> <p>How do I reopen this file?</p> <p>When I go:</p> <pre><code>store = pd.HDFStore('/home/.../data.h5') </code></pre> <p>I get the following error.</p> <pre><code>Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/misc/apps/linux/python-2.6.1/lib/python2.6/site-packages/pandas-0.10.0-py2.6-linux-x86_64.egg/pandas/io/pytables.py", line 207, in __init__ self.open(mode=mode, warn=False) File "/misc/apps/linux/python-2.6.1/lib/python2.6/site-packages/pandas-0.10.0-py2.6-linux-x86_64.egg/pandas/io/pytables.py", line 302, in open self.handle = _tables().openFile(self.path, self.mode) File "/apps/linux/python-2.6.1/lib/python2.6/site-packages/tables/file.py", line 230, in openFile return File(filename, mode, title, rootUEP, filters, **kwargs) File "/apps/linux/python-2.6.1/lib/python2.6/site-packages/tables/file.py", line 495, in __init__ self._g_new(filename, mode, **params) File "hdf5Extension.pyx", line 317, in tables.hdf5Extension.File._g_new (tables/hdf5Extension.c:3039) tables.exceptions.HDF5ExtError: HDF5 error back trace File "H5F.c", line 1582, in H5Fopen unable to open file File "H5F.c", line 1373, in H5F_open unable to read superblock File "H5Fsuper.c", line 334, in H5F_super_read unable to find file signature File "H5Fsuper.c", line 155, in H5F_locate_signature unable to find a valid file signature End of HDF5 error back trace Unable to open/create file '/home/.../data.h5' </code></pre> <p>What am I doing wrong here? Thank you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload