Is there a clean way to include the last element when subindexing numpy arrays? Since the default behaviour of numpy arrays is to omit the “stop index”.
So for, >>> A array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) >>> A[0:5] array([0, 1, 2, 3, 4]) _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion