def assert_stat_op_api(opname, float_frame, float_string_frame,<EOL>has_numeric_only=False):
<EOL>getattr(float_string_frame, opname)(axis=<NUM_LIT:0>)<EOL>getattr(float_string_frame, opname)(axis=<NUM_LIT:1>)<EOL>if has_numeric_only:<EOL><INDENT>getattr(float_string_frame, opname)(axis=<NUM_LIT:0>, numeric_only=True)<EOL>getattr(float_string_frame, opname)(axis=<NUM_LIT:1>, numeric_only=True)<EOL>getattr(float_frame, opname)(axis=<NUM_LIT:0>, numeric_only=False)<EOL>getattr(float_frame, opname)(axis=<NUM_LIT:1>, numeric_only=False)<EOL><DEDENT>
Check that API for operator opname works as advertised on frame

Parameters
----------
opname : string
    Name of the operator to test on frame
float_frame : DataFrame
    DataFrame with columns of type float
float_string_frame : DataFrame
    DataFrame with both float and string columns
has_numeric_only : bool, default False
    Whether the method "opname" has the kwarg "numeric_only"