def transform(fields, function, *tables):
new_table = Table(fields=fields)<EOL>for table in tables:<EOL><INDENT>for row in filter(bool, map(lambda row: function(row, table), table)):<EOL><INDENT>new_table.append(row)<EOL><DEDENT><DEDENT>return new_table<EOL>
Return a new table based on other tables and a transformation function