- IArray.delete(delete_len, axis=0, start=None)#
For example, let’s suppose that we have an array with shape = [20, 20] and chunks = [7, 7]. If delete_len = 5 and axis = 0, because
delete_lenis not a multiple of chunks[axis],
startmust be None or shape[axis] - delete_len = 15. In both cases, the deleted elements will be the same (those at the end) and the new shape will be [15, 20]. If we would like to delete some elements in the middle of the array,
delete_lenboth must be a multiple of chunks[axis]. So the only possibilities is this particular case would be start = 0 and delete_len = 7 or delete_len = 14 which would give an array with shape [13, 20] or [6, 20]. Or start = 7 and delete_len = 7 which would give an array with shape [13, 20].