I have two different lists containing respectively some x and z values. From these two I need to take only some values and distribute x and z over to different rows.
So far I tried this:
import numpy as np
x = [1, 3, 6, 10, 15, 20]
z = [3, 5, 6, 9, 20, 25]
for x_val, z_val in zip(x, z):
if x_val > 6 and z_val > 6:
a = np.append(x_val, z_val)
From which I would expect 10, 15, 20 for the x and 9, 20, 25 for z but I only get the last values (20 and 25) on the same row.
a = [20, 25]