def _extract_data_from_row(row):
    """
    Function that extracts a player's stats from an HTML table row
    via BeautifulSoup4

    :param row: 'tr' or table row containing our stats
    :return: List of player stats
    """
    player_data = []
    player_name_data = row.find("td", attrs={"data-stat": "player"})

    if player_name_data is None:
        return

    player_name = player_name_data.a.get_text()
    player_data.append(player_name)

    # We want to slice the list from the first element after "player
    # until the fourth-to-last data element. The last three elements are
    # fantasy ranking related, and I do not want this data.
    remaining_cells = row.find_all("td")[1:-3]

    for cell in remaining_cells:
        player_data.append(cell.get_text())

    return player_data