numpy remove last column of a matrix code example
Example 1: python array delete last column
b = np.delete(a, -1, axis=1)
Example 2: how to remove first row of numpy array
x = numpy.delete(x, (0), axis=0)
b = np.delete(a, -1, axis=1)
x = numpy.delete(x, (0), axis=0)