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

Function test_binary_join

python/pyarrow/tests/test_compute.py:1423–1431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1421
1422
1423def test_binary_join():
1424 ar_list = pa.array([['foo', 'bar'], None, []])
1425 expected = pa.array(['foo-bar', None, ''])
1426 assert pc.binary_join(ar_list, '-').equals(expected)
1427
1428 separator_array = pa.array(['1', '2'], type=pa.binary())
1429 expected = pa.array(['a1b', 'c2d'], type=pa.binary())
1430 ar_list = pa.array([['a', 'b'], ['c', 'd']], type=pa.list_(pa.binary()))
1431 assert pc.binary_join(ar_list, separator_array).equals(expected)
1432
1433
1434def test_binary_join_element_wise():

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected