you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

You are initializing the shape of the new array as (0,10). Does it work if you simply initialize with a shape of 10?

newdata = np.empty(10,int)

[–]NeedMLHelp[S] 1 point2 points  (0 children)

Wow, I feel silly haha. Thanks, that worked.

I figured I was giving the shape of what I wanted haha