import h5py
f = h5py.File('foo.hdf5', 'w')
d = f.create_dataset('data', (3, 3), maxshape=(None, 3), dtype='i8', chunks
    =True)
d.resize((6, 3))
h5py.__version__
How to resize an HDF5 array with `h5py`