I've got two lists x and y. Want to combine them in a way:
x_y = [[x[0], y[0]], [x[1], y[1]]...].
The code I have is:
import numpy as np
x_ax = np.array(list(range(1, 101)))
y_ax = np.array(list(range(101,201)))
mixed = []
mini = []
for a, b in zip(x_ax, y_ax):
mini = [a,b]
mixed.append(mini)
print(mixed)
I am sure there are better ways to do it. Thanks for help!