This is a simplified array of what I have:
a = np.array([ 1, 12, 60, 80, 90, 210])
b = np.array([11, 30, 79, 89, 99, 232])
How can I get a result that uses a
as the start range, and b
as the end of the range, that can compute a list of numbers (quickly).
so, c
would look like:
c = np.array([1,2,3,...,11, 12,13,14,...,29,30,
60,61,62,...79, ..., 210,211,...,231,232])
Ideally, this would be done in a vectorised way (using numpy/pandas) rather than python.