Search code examples
pythonpydevhdf5liclipse

Number of rows into a HDF5


there's a method for have the number of rows of a .hdf5 without load it in ram ?

I'm using Python 3.4 with pydev on Liclipse (WIndows 10)

Thanky you


Solution

  • if you use the h5py library, you can simply run len(dataset) or dataset.len() (which is recommended).

    See here for more infos.