def discard_remainder(data, seq_length):
    """Discard data that does not fit inside sequence length.

    Args:
        data (np.ndarray): data to truncate
        seq_length (int): sequence length to find data that doesn"t fit into
            sequences

    Returns:
        np.ndarray: truncated data
    """
    new_row_num = data.shape[0] - (data.shape[0] % seq_length)
    data = data[:new_row_num]
    return data