MCPcopy Create free account
hub / github.com/apache/arrow / test_sequence_decimal

Function test_sequence_decimal

python/pyarrow/tests/test_convert_builtin.py:1629–1633  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1627
1628
1629def test_sequence_decimal():
1630 data = [decimal.Decimal('1234.183'), decimal.Decimal('8094.234')]
1631 for type in [pa.decimal32, pa.decimal64, pa.decimal128, pa.decimal256]:
1632 arr = pa.array(data, type=type(precision=7, scale=3))
1633 assert arr.to_pylist() == data
1634
1635
1636def test_sequence_decimal_different_precisions():

Callers

nothing calls this directly

Calls 3

typeEnum · 0.50
DecimalMethod · 0.45
arrayMethod · 0.45

Tested by

no test coverage detected