Human: Can you show me a Python code to index last number of values in array. Assistant: 
Here is a Python code to index last number of values in arrays

import numpy as np

def last_index(array):
        """Returns the index of the last value in the array."""
        return len(array) - 1

# Enter the array
array = np.array([1, 2, 3, 4, 5])

# Calling the function
print((last_index(array)))

#Remember to inspect code for bugs.