I want to make eight shapes (6,1) data in python 3 in the form (8,6)

Asked 2 years ago, Updated 2 years ago, 325 views

Could someone tell me how to convert 8 Shape (6,1) data into (8,6) data?
For example
print(A.shape) is
(6, 1)
(6, 1)
(6, 1)
(6, 1)
(6, 1)
(6, 1)
(6, 1)
(6, 1)

to become print(B.shape)
(8,6)
I'd like to do something like that.

for kin range(8)
    tmp = A[6][1][k]
    for i in range (6)   
        B[k][i] = tmp

Is it like this?

python3 numpy array

2022-09-30 21:49

1 Answers

I solved myself as follows.

forking range(8):
    co=coef.reshape([6])
       for i in range (6):
                cm_coef[k][i] = co[i]


2022-09-30 21:49

If you have any answers or tips


© 2025 OneMinuteCode. All rights reserved.