From: Francesc A. <fa...@ca...> - 2005-07-13 10:17:59
|
A Wednesday 13 July 2005 11:23, Philou va escriure: > Now, i was wondering whether it was possible to modify only a value in a > table. > > I look in the pytables tutorial and find a way to append a row but not > to modify a value in an existing row. Yeah, I agree that an example (as well as some section in the tutorial) about how to modify values in tables would be great. Anyway, the information you are looking for is in the reference section. Look at the Table.modifyRows, Table.modifyColumns methods [1] as well as the Table.__setitem__ special method [2]. Look also at examples for Column.__setitem__ [3]. > If it is not possible, is it possible to remove a row and append another > row at the same position? (Is the fact of deleting a row letting empty > space?). You can delete row(s) using Table.removeRows(). Cheers, [1] http://pytables.sourceforge.net/html-doc/x2488.html#subsection4.6.2 [2] http://pytables.sourceforge.net/html-doc/x2488.html#subsection4.6.3 [3] http://pytables.sourceforge.net/html-doc/x2928.html =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |