For C6, Why I got this error? " index 46 is out of bounds for axis 0 with size 46"

I think my problem is in the above code but why there is a range issue?

image

Size 46 only takes indices between 0 and 45 inclusive.

Got it! Any idea how long it will run? It seems it runs for 10 minutes now.