TypeError: only integer arrays with one element can be converted to an index 3
The issue is just as the error indicates, time_list is a normal python list, and hence you cannot index it using another list (unless the other list is an array with single element). Example – If you want to do that kind of indexing, you would need to make time_list a numpy.array. Example – Another … Read more