I have a multidimensional array and I need to select columns 1st and 2nd, 1st and 3rd, 1st and 4th respectively. Then the 2nd and 3rd,2nd and 4th and finally the 3rd and 4th columns. And etc...
For the purposes of the statement, I transposed the array.
My code
import pandas as pd
pole= np.array([[11,12,13,14],[21,22,23,24],[31,32,33,34],[41,42,43,44]])
pole=np.transpose(pole)
print(pole)
I need
#1st and 2nd
11 21
12 22
13 23
14 24
#1st and 3rd
11 31
12 32
13 33
14 34
#1st and 4th
11 41
12 42
13 43
14 44
#2nd and 3rd
21 31
22 32
23 33
24 34
#2nd and 4th
21 41
22 42
23 43
24 44
#3rd and 4th
31 41
32 42
33 43
34 44
question from:
https://stackoverflow.com/questions/65924464/how-to-read-1st-column-and-2nd-column-and-nth-column-to-last-column-numpy 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…