I have a list of 2 different values:
data = [[0,1,2,3,4,5,6,7,8,9], [1514764800, 1514851200, 1514937600, 1515024000, 1515110400, 1515196800, 1515283200, 1515369600, 1515456000,]]
Now I want to create a list from list_of_values[0]
based on a condition of list_of_values[1]
How could this be done? I tried doing
train_data = [x for x in data[0] if data[1][x] < window_start]
but this does not work.
lets say that window_size
will be 1514851201
so my desired output would be [0,1]