Given two numpy arrays, how to split one into an array of lists based on the second
Given two numpy arrays, how to split one into an array of lists based on the second Question: I have two numpy arrays: one containing arbitrary values, and one containing integers larger than 1. The sum of the integers is equal to the length of the first array. Sample: values = np.array(["a", "b", "c", "d", …