Pandas Assign Multiple Columns With Apply. apply(func, axis=0, raw=False, result_type=None, args=(), by_row='comp