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

Function test_cast_chunked_array

python/pyarrow/tests/test_array.py:1789–1796  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1787
1788
1789def test_cast_chunked_array():
1790 arrays = [pa.array([1, 2, 3]), pa.array([4, 5, 6])]
1791 carr = pa.chunked_array(arrays)
1792
1793 target = pa.float64()
1794 casted = carr.cast(target)
1795 expected = pa.chunked_array([x.cast(target) for x in arrays])
1796 assert casted.equals(expected)
1797
1798
1799def test_cast_chunked_array_empty():

Callers

nothing calls this directly

Calls 4

chunked_arrayMethod · 0.80
equalsMethod · 0.80
arrayMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected