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

Function test_scalar

pandas/tests/tools/test_to_numeric.py:242–244  ·  view source on GitHub ↗
(val, signed, transform)

Source from the content-addressed store, hash-verified

240
241@pytest.mark.parametrize("val", [1, 1.1, 20001])
242def test_scalar(val, signed, transform):
243 val = -val if signed else val
244 assert to_numeric(transform(val)) == float(val)
245
246
247def test_really_large_scalar(large_val, signed, transform, errors):

Callers

nothing calls this directly

Calls 2

to_numericFunction · 0.90
transformFunction · 0.70

Tested by

no test coverage detected