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

Function test_view

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

Source from the content-addressed store, hash-verified

1995
1996
1997def test_view():
1998 # ARROW-5992
1999 arr = pa.array(['foo', 'bar', 'baz'], type=pa.utf8())
2000 expected = pa.array(['foo', 'bar', 'baz'], type=pa.binary())
2001
2002 assert arr.view(pa.binary()).equals(expected)
2003 assert arr.view('binary').equals(expected)
2004
2005
2006def 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