Luca Della Santina (el 2008-01-07 a les 11:16:25 +0100) va dir:: >[...] > I would like to modify the value contained in the third column of the > second row from the original value of 4 to 5 but couldn't find a quick > way to do it inside the pytables manual. > > In first stance i tried to: > mytable[1][2] = 5 > mytable.flush() > > but in this way the new value is not written into the table (even if no > errors were reported). >[...]
``Table.modifyColumn()`` is your friend::
mytable.modifyColumn(start=1, colname='name_of_field2', column=[5])
mytable.flush()
HTH,
::
Ivan Vilata i Balaguer >qo< http://www.carabos.com/
Cárabos Coop. V. V V Enjoy Data
""
signature.asc
Description: Digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Pytables-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pytables-users
