def last_and_first_rows_same(rows) -> bool:
    """ Find if last and first rows of a wikitable are the same (apart from
        unimportant details).

    Args:
        rows (object): list of beautifulSoup HTML row objects.
    Returns:
        same (boolean): last row == first row (apart from unimportant details).
    Raises:
        none.
    """
    first_row = rows[0].find_all('th')
    first_row_labels = [elem.get_text().casefold() for elem in first_row]
    last_row = rows[-1].find_all('th')
    last_row_labels = [elem.get_text().casefold() for elem in last_row]
    return first_row_labels == last_row_labels