mutate1:
Hugo_Symbol Start_position Tumor_Seq_Allele1 Variant_Classification
5 POU3F1 38512139 G Missense_Mutation
356140 POU3F1 38511502 C Missense_Mutation
388147 POU3F1 38511377 A Nonsense_Mutation
I tried
>>> startpos = np.zeros(3)
>>> for ind in mutate1.index:
... for i in range(3):
... startpos[i] = int(mutate1['Start_position'][ind]-1)
... print(startpos)
...
[38512138. 0. 0.]
[38512138. 38512138. 0.]
[38512138. 38512138. 38512138.]
[38511501. 38512138. 38512138.]
[38511501. 38511501. 38512138.]
[38511501. 38511501. 38511501.]
[38511376. 38511501. 38511501.]
[38511376. 38511376. 38511501.]
[38511376. 38511376. 38511376.]
However, I want startpos = [38512138, 38511501, 38511376], how should I change the current code?