According to the documentation, when the parameter include_last_offset is True, it is expected that “offsets has one additional element, where the last element is equivalent to the size of indices.” ...