arr = [12345, 12345, 12345, 12345] paths = [67890, 67890, 67890, 67890]
How can I combine these two numpy arrays to get this output below? output = [1234567890, 1234567890, 1234567890, 1234567890]
arr = [12345, 12345, 12345, 12345] paths = [67890, 67890, 67890, 67890]
How can I combine these two numpy arrays to get this output below? output = [1234567890, 1234567890, 1234567890, 1234567890]
IIUC, here's one way:
arr_list = [arr, paths]
result = np.apply_along_axis(''.join, 0, arr_list)