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

Function test_write_csv_decimal

python/pyarrow/tests/test_csv.py:2195–2202  ·  view source on GitHub ↗
(tmpdir, type_factory)

Source from the content-addressed store, hash-verified

2193 lambda: pa.decimal256(76, 10),
2194))
2195def test_write_csv_decimal(tmpdir, type_factory):
2196 type = type_factory()
2197 table = pa.table({"col": pa.array([1, 2]).cast(type)})
2198
2199 write_csv(table, tmpdir / "out.csv")
2200 out = read_csv(tmpdir / "out.csv")
2201
2202 assert out.column('col').cast(type) == table.column('col')
2203
2204
2205def test_read_csv_gil_deadlock():

Callers

nothing calls this directly

Calls 3

castMethod · 0.45
arrayMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected