def log_trans(table):
t = []<EOL>all = [item for sublist in table for item in sublist]<EOL>if min(all) == <NUM_LIT:0>:<EOL><INDENT>scale = min([i for i in all if i != <NUM_LIT:0>]) * <NUM_LIT><EOL><DEDENT>else:<EOL><INDENT>scale = <NUM_LIT:0><EOL><DEDENT>for i in table:<EOL><INDENT>t.append(np.ndarray.tolist(np.log10([j + scale for j in i])))<EOL><DEDENT>return t<EOL>
log transform each value in table