I've been using (and recommend) Pandas http://pandas.pydata.org/ along with
this book:
http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDIQFjAA&url=http%3A%2F%2Fshop.oreilly.com%2Fproduct%2F0636920023784.do&ei=GfSnUJSbGqm5ywH7poCwDA&usg=AFQjCNEJuio5DbubgyNQR4Tp9iM1RClZHA
Good
##
#This works in through ipython
In [15]: tbl.flush
Out[15]:
In [27]: i = 3
In [28]: row = tbl.row
In [29]: row['movie'] = i
In [30]: row['rating'] = i
In [31]: row.append()
In [32]: tbl.flush()
In [34]: for n in tbl.iterrows():
: print n
:
This is my first post. Thanks for your help.
I am having a weird problem with my first attempt to use PyTables.
In ipython, this works:
import tables
h5f = tables.open...
tbl = h5f.root.ratings
row in tbl.row
row[column] = 3
row.append()
...but if I run the same code from a file ("python foo.py