> r = list(row) # convert row into a list > r[2] = int(r[2]) > r = tuple(r) # convert again into a tuple
This does not work. Got an error that int is expecting int,str I modified it to: for i, row in enumerate(mapping.tblData.iterrows()): dsttable.append([(row[0], row[1], int(row[2]), row[3])]) # append converted row to dsttable But it is much slower than the original way ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users