I'm trying to find the index of v but it always gives me:
'numpy.ndarray' object has no attribute 'index'
I've tried:
TypeError: slice indices must be integers or None or have an __index__ method. How to resolve it?
How to find the index of an array within an array.
Finding the index of an item given a list containing it in Python
none of them have answered my question
v = np.random.randn(10)
print(v)
maximum = np.max(v)
minimum = np.min(v)
print(maximum, minimum)
v.index(maximum, minimum)
edit: Oh, crap i put ma instead of maximum my bad. I just started programing then.