def row_containing_team(team, data):
    """
    Returns row of team in data
    :type team: str
    :type data: list
    :rtype: int
    """
    # Looping through rows in data and checking which one matches the team selected
    row_num = 0
    for row in data:
        # Checking at both indices since MLB CSV has team at index 1
        if team.lower() in row[0].lower() or team.lower() in row[1].lower():
            break
        else:
            row_num += 1
    return row_num