The cause for Indexerror: index 0 is out of bounds for axis 0 with size 0 is when trying to access the first element stored inside the first dimension array. However, such a numpy array is empty and hence inaccessible. This tutorial shows an example ...