Forums

IndexError

Hi, I am always getting "IndexError: index 8 is out of bounds for axis 1 with size 8" while running an always on task after a few minutes (it works several loops and then randomly stops). It doesn't happen in Google Colab or when running the code manually in its file. Do you have any idea what could be happening? Thanks :)

The data frame that you're working on is not the shape that your code is expecting. Check what is actually in the dataframe and how that data got there so you can debug it.