MCPcopy
hub / github.com/pandas-dev/pandas / op

Function op

pandas/tests/apply/test_frame_transform.py:217–220  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

215def test_transform_failure_valueerror():
216 # GH 40211
217 def op(x):
218 if np.sum(np.sum(x)) < 10:
219 raise ValueError
220 return x
221
222 df = DataFrame({"A": [1, 2, 3], "B": [400, 500, 600]})
223 msg = "Transform function failed"

Callers 15

time_op_same_blocksMethod · 0.85
_flex_methodMethod · 0.85
_reduceMethod · 0.85
diffFunction · 0.85
funcMethod · 0.85
blk_funcMethod · 0.85
_inplace_methodMethod · 0.85
_masked_arith_opFunction · 0.85
arithmetic_opFunction · 0.85

Calls 1

sumMethod · 0.45

Tested by

no test coverage detected