September 2014
Intermediate to advanced
512 pages
12h 39m
English
PyTables can store homogeneous blocks of data as NumPy-like arrays in HDF5 files. It can also store heterogeneous tables, as we will see in this recipe.
You need PyTables for this recipe (see the previous recipe for installation instructions).
In [1]: import numpy as np
import tables as tbIn [2]: f = tb.open_file('myfile.h5', 'w')In [3]: dtype = np.dtype([('city','S64'), ('population', ...Read now
Unlock full access