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

Function test_view

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

Source from the content-addressed store, hash-verified

2053
2054
2055def test_view():
2056 # ARROW-5992
2057 arr = pa.array(['foo', 'bar', 'baz'], type=pa.utf8())
2058 expected = pa.array(['foo', 'bar', 'baz'], type=pa.binary())
2059
2060 assert arr.view(pa.binary()).equals(expected)
2061 assert arr.view('binary').equals(expected)
2062
2063
2064def test_unique_simple():

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.80
arrayMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected