def frame_apply(obj, func, axis=<NUM_LIT:0>, broadcast=None,<EOL>raw=False, reduce=None, result_type=None,<EOL>ignore_failures=False,<EOL>args=None, kwds=None):
axis = obj._get_axis_number(axis)<EOL>if axis == <NUM_LIT:0>:<EOL><INDENT>klass = FrameRowApply<EOL><DEDENT>elif axis == <NUM_LIT:1>:<EOL><INDENT>klass = FrameColumnApply<EOL><DEDENT>return klass(obj, func, broadcast=broadcast,<EOL>raw=raw, reduce=reduce, result_type=result_type,<EOL>ignore_failures=ignore_failures,<EOL>args=args, kwds=kwds)<EOL>
construct and return a row or column based frame apply object