I have a CSV like the below:
i,ix,iz,iy,u'
0,1,1,1,-0.8696748576752853
1,1,1,2,2.3557976585107454
2,1,1,3,0.47209618683697663
3,1,1,4,-1.930481713597933
4,1,1,5,-1.7868247414530511
5,1,1,6,-0.5603642778861779
6,1,1,7,0.24540750240253573
7,1,1,8,0.5505270314521304
8,1,1,9,-0.1954277406567968
9,1,1,10,-1.3521265193776344
How to achieve values from u' when certain conditions are imposed in ix,iy,iz? For example, I would like to perform a for like the above:
for iy in list1:
for iz in list2:
for ix in list3:
U = 2*df.iloc[a,4] ## `a` is just a row resulted from the the for's combination.
Furthermore, the whole CSV have 128^3 rows. This is the best way to perform loop in pandas? There's another faster way?