1
i was testing the delete method of the array class of the numpy library and a strange thing happened: I had the element of Indice 0 deleted from the array, but the element of Indice 1 is deleted. I don’t understand what this delete is doing
>>> import numpy as np
>>> lista = np.array([1,2,3,4,5,6])
>>> lista
array([1, 2, 3, 4, 5, 6])
>>> lista[0]
1
>>> lista = np.delete(lista,lista[0])
>>> lista
array([1, 3, 4, 5, 6])