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

Function test_view

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

Source from the content-addressed store, hash-verified

1960
1961
1962def test_view():
1963 # ARROW-5992
1964 arr = pa.array(['foo', 'bar', 'baz'], type=pa.utf8())
1965 expected = pa.array(['foo', 'bar', 'baz'], type=pa.binary())
1966
1967 assert arr.view(pa.binary()).equals(expected)
1968 assert arr.view('binary').equals(expected)
1969
1970
1971def 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