Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ test_cast_identities
Function
test_cast_identities
python/pyarrow/tests/test_array.py:2438–2440 ·
view source on GitHub ↗
(ty, values)
Source
from the content-addressed store, hash-verified
2436
(pa.binary(3), [b
'abc'
, b
'bcd'
, b
'cde'
])
2437
])
2438
def
test_cast_identities(ty, values):
2439
arr = pa.array(values, type=ty)
2440
assert arr.cast(ty).equals(arr)
2441
2442
2443
pickle_test_parametrize = pytest.mark.parametrize(
Callers
nothing calls this directly
Calls
3
equals
Method · 0.80
array
Method · 0.45
cast
Method · 0.45
Tested by
no test coverage detected