for i in range(len(H)):
S=Y[1:,(0,1,m)] # change 2=> 2:m
S=S[S[0:,0] ==HN[k]]
S=S[S[0:,1] ==H[i]]
S=S[S[0:,2]!=''] #
S=S[0:,2] #
for j in range(len(S)):
print(HN[k],H[i],S[j],H[j]*H[I])
This prints output of almost 900-1000 rows on my jupyter notebook. However I want output to be directly a csv
or xls
file. So that I don't have to copy or paste, would also save me time if rows increases of my data.