KeyError: (0, 0)
Awaiting user inputHai, I get the following error: KeyError: (0, 0)
I think this is because of these codes; shift [n,d] = x[n,d].X
# Solution
shift = np.zeros((N,S))
for n in range (N):
for s in range (S):
shift [n,s] = x[n,s].X
np.savetxt("x.txt", shift)
thanks!
0
-
Please have a look at our Tutorial: Preparing a Minimal Reproducible Example.
0
Please sign in to leave a comment.
Comments
1 comment